Indicates that the move is a virtual move (i.e. called by metronome)
Protected
battlerProtected
reflectedProtected
targetsProtected
applyHandles checking for and applying Flinches
a function intended to be passed into a then()
call.
Protected
applyProtected
applySub-method of for applyMoveEffects
that applies damage to the target.
The Pokemon
using this phase's invoked move
The Pokemon
targeted by the move
The effectiveness of the move against the target
Protected
applyApplies all move effects that trigger in the event of a successful hit:
PRE_APPLY
effects`POST_APPLY
effectsapplyOnTargetEffects
if the move does not hit a substitutethe Pokemon
hit by this phase's move.
the effectiveness of the move (as previously evaluated in hitCheck
)
Protected
applyApplies reactive effects that occur when a Pokémon is hit. (i.e. Effect Spore, Disguise, Liquid Ooze, Beak Blast)
a Promise
intended to be passed into a then()
call.
Protected
applyCheck whether the move should bypass both the accuracy and semi-invulnerable states.
true
if the move should bypass accuracy and semi-invulnerability
Accuracy and semi-invulnerability can be bypassed by:
Toxic
Lock-On
or Mind Reader
.Does not check against effects Glaive Rush
status (which
should not bypass semi-invulnerability), or interactions like Earthquake hitting against Dig,
(which should not bypass the accuracy check).
Check whether the move is able to ignore the given semiInvulnerableTag
The semiInvulnerable tag to check against
true
if the move can ignore the semi-invulnerable state
The first target of this phase's invoked move
Protected
getA new MoveEffectPhase
with the same properties as this phase
Conduct the hit check and type effectiveness for this move against the target
Checks occur in the following order:
a HitCheckEntry containing the attack's HitCheckResult
and effectiveness
against the target.
Protected
onProtected
queueProtected
removeProtected
triggerTriggers move effects of the given move effect trigger.
The MoveEffectTrigger
being applied
The Pokemon
using the move
The Pokemon
targeted by the move
Optional
firstTarget: null | booleanWhether the target is the first to be hit by the current strike
Optional
selfTarget: booleanIf defined, limits the effects triggered to either self-targeted
effects (if set to true
) or targeted effects (if set to false
).
a Promise
applying the relevant move effects.
Protected
updateRemoves all substitutes that were broken by this phase's invoked move
Indicates that the move was reflected by the user due to magic coat or magic bounce