public class Focus extends StatusBase
Cancels Focus Punch if the user is hit during the move.
  • Constructor Details

    • Focus

      public Focus()
      Initializes the status.
  • Method Details

    • onDamageReceived

      public void onDamageReceived(PixelmonWrapper userWrapper, PixelmonWrapper pokemon, Attack a, int damage, DamageTypeEnum damageType)
      Description copied from class: StatusBase
      Triggers when the statused Pokémon takes damage.
      Overrides:
      onDamageReceived in class StatusBase
      Parameters:
      userWrapper - The attack's user.
      pokemon - The statused Pokémon.
      a - The attack.
      damage - The amount of damage dealt.
      damageType - The type of damage dealt.