Class StatReplaceEffect
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.SpecialAttackBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.StatReplaceEffect
Subclass for move effects modifying attacking and defensive stats.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDefensiveStat
(PixelmonWrapper user, PixelmonWrapper target, Attack a, PixelmonWrapper statOwner) Changes the stat used for calculating defense.getDefensiveStatPokemon
(PixelmonWrapper user, PixelmonWrapper target, Attack a) Changes the pokemon whose defensive stat is used for calculating damage.getOffensiveStat
(PixelmonWrapper user, PixelmonWrapper target, Attack a, PixelmonWrapper statOwner) Changes the stat used for calculating damage.getOffensiveStatPokemon
(PixelmonWrapper user, PixelmonWrapper target, Attack a) Changes the pokemon whose attacking stat is used for calculating damage.Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.SpecialAttackBase
applyAfterEffect, applyEffect, applyEffectDuring, cantMiss, ignoresWeather, modifyPriority, overridesDefendingStat, shouldThawUser
Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, canHitMultipleTargets, changeChance, checkChance, dealtDamage, dealtDamagePerHit, doesPersist, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance, weightEffect
-
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.
-