All Implemented Interfaces:
Ability, RarityTweak, ITranslatable

public class PurifyingSalt extends PreventStatus
Prevents the Pokémon from being afflicted by non-volatile status conditions and yawn.
  • Constructor Details

    • PurifyingSalt

      public PurifyingSalt()
      Initializes Purifying Salt.
  • Method Details

    • applySwitchInEffect

      public void applySwitchInEffect(PixelmonWrapper pokemon)
      Description copied from interface: Ability
      Triggers after the Pokémon switches in and when the Pokémon gains an Ability.
      Specified by:
      applySwitchInEffect in interface Ability
      Overrides:
      applySwitchInEffect in class PreventStatus
      Parameters:
      pokemon - The Pokémon switching in.
    • preProcessAttackStatBeforeDamageCalc

      public double preProcessAttackStatBeforeDamageCalc(PixelmonWrapper attacker, double attackStat)
      Description copied from interface: Ability
      Triggers when another Pokémon is attacking this Pokémon, the attack will hit, and the attack is not charging. Triggers right before damage calculation is done.
      Parameters:
      attacker - The Pokémon that is attacking.
      attackStat - The attacker's attack value.
    • canBeIgnored

      public boolean canBeIgnored()
      Description copied from interface: Ability
      Returns whether the ability can be bypassed by moves that ignore abilities or not.
      Returns:
      Whether the ability can be ignored.