Class PreventRedirect
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.AttackModifierBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.PreventRedirect
Makes the move ignore attack redirection.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanpreventsRedirection(PixelmonWrapper user, Attack attack) Prevents redirection abilities and moves from changing the targets of the user's attacksMethods inherited from class com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.AttackModifierBase
applyEffect, applyEffectDuring, cantMissMethods 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, setChance, weightEffect
-
Constructor Details
-
PreventRedirect
Initializes the modifier.- Parameters:
values- Indicates that the move always prevents redirection.
-
-
Method Details
-
preventsRedirection
Description copied from class:EffectBasePrevents redirection abilities and moves from changing the targets of the user's attacks- Overrides:
preventsRedirectionin classEffectBase- Parameters:
user- The Pokémon using the attack.attack- The attack.- Returns:
- Whether the attack will maintain its target.
-