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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgoBerserk(PixelmonWrapper attacker, PixelmonWrapper target) voidpreProcessAttack(PixelmonWrapper pw, PixelmonWrapper attacker, Attack a) Triggers before the Pokémon is attacked.voidtookDamageTarget(int damageResult, PixelmonWrapper attacker, PixelmonWrapper target, Attack attack) Triggers after the Pokémon takes damage.voidtookDamageTargetAfterMoveLate(PixelmonWrapper attacker, PixelmonWrapper target) Triggers at the end of an attack, after all effects (after all hits of a multi-hit move and after being poisoned, burned, etc.) if the user takes damage.Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
equals, getName, getNewInstance, getTranslationKey, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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, applyEffectBeforeContactLate, 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, ignoresAdditionalEffectsAgainstTarget, ignoresAdditionalEffectsFromAttacker, ignoresContactEffectsFromTarget, 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, onStatusInflicted, onTargetKnockedOut, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, preventsItemRemoval, preventsRedirection, redirectAttack, redirectStatChange, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTargetAfterMove, tookDamageUser, worksWithTransformedPokemonMethods 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:AbilityTriggers before the Pokémon is attacked.- Parameters:
pw- The Pokémon with the Ability.attacker- The attack's user.a- The attack.
-
tookDamageTarget
public void tookDamageTarget(int damageResult, PixelmonWrapper attacker, PixelmonWrapper target, Attack attack) Description copied from interface:AbilityTriggers after the Pokémon takes damage.- Parameters:
damageResult- The amount of damage dealt.attacker- The attack's user.target- The attack's target.attack- The attack.
-
tookDamageTargetAfterMoveLate
Description copied from interface:AbilityTriggers at the end of an attack, after all effects (after all hits of a multi-hit move and after being poisoned, burned, etc.) if the user takes damage.The target is guaranteed to have taken damage this turn.
- Parameters:
attacker- The attack's user.target- The attack's target and the user of the ability.
-
goBerserk
-