java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.Berserk
All Implemented Interfaces:
Ability, RarityTweak, ITranslatable

public class Berserk extends AbstractAbility
Boosts the Pokémon's Sp. Atk stat when it takes a hit that causes its HP to become half or less.
  • Field Details

    • startingPercent

      protected float startingPercent
  • Constructor Details

    • Berserk

      public Berserk()
  • Method Details

    • preProcessAttack

      public void preProcessAttack(PixelmonWrapper pw, PixelmonWrapper attacker, Attack a)
      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.
    • tookDamageTarget

      public void tookDamageTarget(int damageResult, PixelmonWrapper attacker, PixelmonWrapper target, Attack attack)
      Description copied from interface: Ability
      Triggers 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

      public void tookDamageTargetAfterMoveLate(PixelmonWrapper attacker, PixelmonWrapper target)
      Description copied from interface: Ability
      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.

      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

      protected void goBerserk(PixelmonWrapper attacker, PixelmonWrapper target)