Class Berserk
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.Berserk
- All Implemented Interfaces:
Ability
,RarityTweak
,ITranslatable
Boosts the Pokémon's Sp. Atk stat when it takes a hit that causes its HP to become half or less.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
preProcessAttack
(PixelmonWrapper pw, PixelmonWrapper attacker, Attack a) Triggers before the Pokémon is attacked.void
tookDamageTargetAfterMove
(PixelmonWrapper user, PixelmonWrapper target, Attack a, float damage) Triggers at the end of an attack (after all hits of a multi-hit move) if the user takes damage.Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
equals, getName, getNewInstance, getTranslationKey, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.ability.Ability
adjustCriticalHitChance, adjustCritStage, allowsAttack, allowsIncomingAttack, allowsIncomingAttackMessage, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusOpponent, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyCritMultiplier, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyEndOfBattleEffect, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchInEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, canBeCopied, canBeDisabled, canBeEntrained, canBeIgnored, canBeReceived, canBeRoleplayed, canBeSwapped, canBeTraced, canPerish, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getMultiplier, ignoreEvasion, ignoresStatusTypeImmunity, ignoreWeather, isAbility, isAbility, isAbility, isAbility, isAbility, isNegativeAbility, modifyConfusionDamage, modifyDamage, modifyDamageIncludeFixed, modifyDamageTarget, modifyDamageTeammate, modifyDamageUser, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyMoveEffects, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyTeammate, modifyPowerAndAccuracyUser, modifyPriority, modifySelfDamage, modifyStab, modifyStats, modifyStatsCancellable, modifyStatsCancellableOther, modifyStatsCancellableTeammate, modifyStatsOther, modifyStatsTeammate, modifyType, modifyWeight, needNewInstance, onAbilityLost, onAllyFaint, onBerryEaten, onDamageReceived, onFoeFaint, onHealed, onItemChanged, onItemConsumed, onSelfFaint, onStatDecrease, onStatIncrease, onStatusAdded, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, preventsItemRemoval, preventsRedirection, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageUser, worksWithTransformedPokemon
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Field Details
-
startingPercent
protected float startingPercent
-
-
Constructor Details
-
Berserk
public Berserk()
-
-
Method Details
-
preProcessAttack
Description copied from interface:Ability
Triggers before the Pokémon is attacked.- Parameters:
pw
- The Pokémon with the Ability.attacker
- The attack's user.a
- The attack.
-
tookDamageTargetAfterMove
public void tookDamageTargetAfterMove(PixelmonWrapper user, PixelmonWrapper target, Attack a, float damage) Description copied from interface:Ability
Triggers at the end of an attack (after all hits of a multi-hit move) if the user takes damage.- Parameters:
user
- The attack's user.target
- The attack's target.a
- The attack.
-