All Implemented Interfaces:
Ability, RarityTweak, ITranslatable
Direct Known Subclasses:
Insomnia, VitalSpirit

public class PreventSleep extends PreventStatus
Prevents Pokémon from falling asleep.
  • Constructor Details

    • PreventSleep

      public PreventSleep(String immuneText, String cureText)
      Initializes the Ability.
      Parameters:
      immuneText - The lang code for the text to display when the Ability prevents sleep.
      cureText - The lang code for the text to display when the Ability cures sleep.
  • Method Details

    • allowsIncomingAttack

      public boolean allowsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
      Description copied from interface: Ability
      Determines whether an incoming attack can hit the Pokémon
      Parameters:
      pokemon - The Pokémon with the Ability.
      user - The attack's user.
      a - The attack.
      Returns:
      Whether the attack can hit the Pokémon.