Direct Known Subclasses:
BodyPress, FoulPlay

public abstract class StatReplaceEffect extends SpecialAttackBase
Subclass for move effects modifying attacking and defensive stats.
  • Constructor Details

    • StatReplaceEffect

      public StatReplaceEffect()
  • Method Details

    • getOffensiveStatPokemon

      public PixelmonWrapper getOffensiveStatPokemon(PixelmonWrapper user, PixelmonWrapper target, Attack a)
      Changes the pokemon whose attacking stat is used for calculating damage.
      Parameters:
      user - The move's user.
      target - The move's target.
      a - The move.
      Returns:
      The owner of the attacking stat.
    • getDefensiveStatPokemon

      public PixelmonWrapper getDefensiveStatPokemon(PixelmonWrapper user, PixelmonWrapper target, Attack a)
      Changes the pokemon whose defensive stat is used for calculating damage.
      Parameters:
      user - The move's user.
      target - The move's target.
      a - The move.
      Returns:
      The owner of the defensive stat.
    • getOffensiveStat

      public BattleStatsType getOffensiveStat(PixelmonWrapper user, PixelmonWrapper target, Attack a, PixelmonWrapper statOwner)
      Changes the stat used for calculating damage.
      Parameters:
      user - The move's user.
      target - The move's target.
      a - The move.
      statOwner - The owner of the attacking stat.
      Returns:
      The stat to be used for calculating damage.
    • getDefensiveStat

      public BattleStatsType getDefensiveStat(PixelmonWrapper user, PixelmonWrapper target, Attack a, PixelmonWrapper statOwner)
      Changes the stat used for calculating defense.
      Parameters:
      user - The move's user.
      target - The move's target.
      a - The move.
      statOwner - The owner of the defensive stat.
      Returns:
      The stat to be used for calculating defense.