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

public class LeafGuard extends AbstractAbility
During intense sunlight, Leaf Guard prevents the Pokémon from being afflicted by non-volatile status conditions and Yawn.
  • Constructor Details

    • LeafGuard

      public LeafGuard()
  • 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.
    • 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.