Class FoulPlay
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
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.FoulPlay
Foul Play uses the opponent's attack stat to calculate damage.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOffensiveStat
(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.StatReplaceEffect
getDefensiveStat, getDefensiveStatPokemon
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
-
FoulPlay
public FoulPlay()
-
-
Method Details
-
getOffensiveStatPokemon
public PixelmonWrapper getOffensiveStatPokemon(PixelmonWrapper user, PixelmonWrapper target, Attack a) Description copied from class:StatReplaceEffect
Changes the pokemon whose attacking stat is used for calculating damage.- Overrides:
getOffensiveStatPokemon
in classStatReplaceEffect
- Parameters:
user
- The move's user.target
- The move's target.a
- The move.- Returns:
- The owner of the attacking stat.
-
getOffensiveStat
public BattleStatsType getOffensiveStat(PixelmonWrapper user, PixelmonWrapper target, Attack a, PixelmonWrapper statOwner) Description copied from class:StatReplaceEffect
Changes the stat used for calculating damage.- Overrides:
getOffensiveStat
in classStatReplaceEffect
- 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.
-