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

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

    • PurifyingSalt

      public PurifyingSalt()
  • Method Details

    • allowsStatus

      public boolean allowsStatus(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper user)
      Description copied from interface: Ability
      Fires when a status attempts to apply.
      Parameters:
      status - StatusType.[whatever status] == status is the condition of the if statement.
      pokemon - The victim.
      user - The user.
      Returns:
      Whether the status can be afflicted.
    • 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. e.g. Moldbreaker or G-Max Drum Solo
      Returns:
      Whether the ability can be ignored.