Class ProtectVariationTeam

Direct Known Subclasses:
CraftyShield, QuickGuard, WideGuard

public abstract class ProtectVariationTeam extends ProtectVariation
A Protect variation that affects the whole team.
  • Constructor Details

    • ProtectVariationTeam

      public ProtectVariationTeam(StatusType type)
      Initializes the status.
      Parameters:
      type - The type of status.
  • Method Details

    • addStatus

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

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

      public boolean isTeamStatus()
      Description copied from class: StatusBase
      Determines whether the status applies to the Pokémon's position in the battle.
      Overrides:
      isTeamStatus in class StatusBase
      Returns:
      Whether the status applies to the Pokémon's position in the battle.
    • 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.
    • canFail

      protected boolean canFail()
      Description copied from class: ProtectVariation
      Checks if the move can fail when used in succession.
      Overrides:
      canFail in class ProtectVariation
      Returns:
      Whether the move can fail when used in succession.
    • getNewInstance

      public abstract ProtectVariationTeam getNewInstance()
      Gets a new instance of the status.
      Returns:
      A new instance of the status.