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.
    • 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.