Class MagicCoat


public class MagicCoat extends StatusBase
Reflects most status moves back at the moves' users.
  • Constructor Details

    • MagicCoat

      public MagicCoat()
      Initializes Magic Coat.
  • 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.
    • stopsIncomingAttack

      public boolean stopsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user)
      Description copied from class: StatusBase
      Determines whether the status stops an attack about to hit the statused Pokémon.
      Overrides:
      stopsIncomingAttack in class StatusBase
      Parameters:
      pokemon - The statused Pokémon.
      user - The attack's user.
      Returns:
      Whether the attack is stopped.
    • reflectMove

      public static boolean reflectMove(Attack a, PixelmonWrapper pokemon, PixelmonWrapper user, String message)
      Reflects a status move back at its user.
      Parameters:
      a - The move to attempt to reflect.
      pokemon - The Pokémon reflecting the move.
      user - The Pokémon using the status move.
      message - The lang code for the message to display when the move is reflected.
      Returns:
      Whether the move was reflected.
    • 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.