Class Priority
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.AttackModifierBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.Priority
Causes the move to be executed at the beginning or the end of turn order.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
modifyPriority
(int priority, ImmutableAttack attack, PixelmonWrapper pw) Modifies the priority of a move.Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.AttackModifierBase
applyEffect, applyEffectDuring, cantMiss
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, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance, weightEffect
-
Field Details
-
priority
public int priority
-
-
Constructor Details
-
Priority
Initializes a priority effect.- Parameters:
values
- The priority of the move.
-
-
Method Details
-
modifyPriority
Modifies the priority of a move.- Overrides:
modifyPriority
in classEffectBase
- Parameters:
priority
- The current calculated priority.attack
- The attack being used.pw
- The Pokémon using the move.- Returns:
- The new priority.
-