Class MistyTerrain


public class MistyTerrain extends Terrain
Halves the damage of Dragon-type moves and prevents sleep.
  • Constructor Details

    • MistyTerrain

      public MistyTerrain(boolean extended)
      Initializes the status.
    • MistyTerrain

      public MistyTerrain(int turnsToGo)
  • Method Details

    • getNewInstance

      public Terrain getNewInstance()
      Description copied from class: Terrain
      Gets a new instance of the subclass.
      Specified by:
      getNewInstance in class Terrain
      Returns:
      A new instance of the subclass.
    • getTerrainType

      @Nonnull public Terrain getTerrainType()
      Specified by:
      getTerrainType in class Terrain
    • getTypingForTerrain

      public Element getTypingForTerrain()
      Specified by:
      getTypingForTerrain in class Terrain
    • modifyPowerAndAccuracyTarget

      public int[] modifyPowerAndAccuracyTarget(int power, int accuracy, PixelmonWrapper user, PixelmonWrapper target, Attack a)
      Description copied from class: StatusBase
      Modifies the power and accuracy of the attack about to hit the statused Pokémon.
      Overrides:
      modifyPowerAndAccuracyTarget in class StatusBase
      Parameters:
      power - The attack's power.
      accuracy - The attack's accuracy.
      user - The attack's user.
      target - The attack's target.
      a - The attack.
      Returns:
      The modified power and accuracy.
    • stopsStatusChange

      public boolean stopsStatusChange(StatusType t, PixelmonWrapper target, PixelmonWrapper user)
      Description copied from class: StatusBase
      Determines whether the status prevents the Pokémon from obtaining other statuses.
      Overrides:
      stopsStatusChange in class StatusBase
      Parameters:
      t - The status to be afflicted
      target - The Pokémon to be afflicted.
      user - The Pokémon afflicting the status.
      Returns:
      Whether the status stops the other status from being afflicted.
    • countBenefits

      protected int countBenefits(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from class: Terrain
      Counts the number of ways that the target Pokémon benefits from the terrain.
      Specified by:
      countBenefits in class Terrain
      Parameters:
      user - The Pokémon using the terrain move.
      target - The Pokémon to count benefits for.
      Returns:
      The number of ways that the target Pokémon benefits from the terrain.
    • copy

      public StatusBase copy()
      Description copied from class: StatusBase
      If necessary, makes a deep copy of the status.
      Overrides:
      copy in class StatusBase
      Returns:
      A deep copy of the status.