public class Reflect extends Screen
Raises the team's Defense.
  • Constructor Details

    • Reflect

      public Reflect()
      Initializes Reflect Screen with the default five turn duration.
    • Reflect

      public Reflect(int turns)
      Initializes Reflect with a custom duration.
      Parameters:
      turns - Number of turns for Reflect to last.
  • 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 Screen
      Parameters:
      user - The move's user.
      target - The move's target.
    • getNewInstance

      protected Screen getNewInstance(int effectTurns)
      Description copied from class: Screen
      Creates a new instance of the subclass.
      Specified by:
      getNewInstance in class Screen
      Parameters:
      effectTurns - The number of turns for the screen to last.
      Returns:
      A new instance of the subclass.