Class SpikyShield


public class SpikyShield extends Protect
Acts like Protect, and damages Pokémon who make contact by 1/8 of their maximum hp.
  • Constructor Details

    • SpikyShield

      public SpikyShield()
      Initializes the status.
  • Method Details

    • addStatus

      protected boolean addStatus(PixelmonWrapper user)
      Description copied from class: ProtectVariation
      Adds the status to the user.
      Overrides:
      addStatus in class Protect
      Parameters:
      user - The user of the move.
      Returns:
      Whether the status addition succeeded.
    • applyProtectionEffect

      public void applyProtectionEffect(PixelmonWrapper target, PixelmonWrapper user, Attack a)
      Overrides:
      applyProtectionEffect in class ProtectVariation
    • weightEffect

      public void weightEffect(PixelmonWrapper pw, MoveChoice userChoice, List<MoveChoice> userChoices, List<MoveChoice> bestUserChoices, List<MoveChoice> opponentChoices, List<MoveChoice> bestOpponentChoices)
      Description copied from class: EffectBase
      Determines a weight for the move that has this effect. Used for battle AI.
      Overrides:
      weightEffect in class Protect
      Parameters:
      pw - The Pokémon using the move.
      userChoice - The move with this effect.
      userChoices - All choices the Pokémon has for the turn.
      bestUserChoices - The best offensive choices the Pokémon has for the turn.
      opponentChoices - All choices the opponent has for the turn.
      bestOpponentChoices - The best choices the opponent has for the turn.