Class NoRetreat


public class NoRetreat extends StatusBase
Prevents the Pokémon from escaping or switching. Only fails if the user already has No Retreat https://bulbapedia.bulbagarden.net/wiki/No_Retreat
  • Constructor Details

    • NoRetreat

      public NoRetreat()
      Initializes the status.
    • NoRetreat

      public NoRetreat(PixelmonWrapper locker)
      Initializes No Retreat.
      Parameters:
      locker - The Pokémon who used No Retreat.
  • Method Details

    • applyEffect

      public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from class: EffectBase
      Causes various effects during the move.
      Overrides:
      applyEffect in class StatusBase
      Parameters:
      user - The move's user.
      target - The move's target.
    • stopsSwitching

      public boolean stopsSwitching()
      Description copied from class: StatusBase
      Determines whether the status stops switching.
      Overrides:
      stopsSwitching in class StatusBase
      Returns:
      Whether the status stops switching.
    • applyRepeatedEffect

      public void applyRepeatedEffect(PixelmonWrapper pw)
      Description copied from class: StatusBase
      Triggered at the end of every turn.
      Overrides:
      applyRepeatedEffect in class StatusBase
      Parameters:
      pw - The statused Pokémon.