Protected
battlerThe battler index this phase refers to, or the pokemon ID if greater than 3.
TODO: Make this either use IDs or BattlerIndex
es, not a weird mix of both
Readonly
phaseThe string name of the phase, used to identify the phase type for is
Protected
targetsProtected
useProtected
addUnshifts a new MoveEffectPhase
with the same properties as this phase.
Used to queue the next hit of multi-strike moves.
Protected
applyProtected
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
The HitResult
of the move against the target and a boolean indicating whether the target was crit
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
)
Whether this is the first target successfully struck by the move
Protected
applyProtected
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 active, non-fainted target of this phase's invoked move.
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.
Check if the phase is of the given type without requiring instanceof
.
The string name of the phase to check.
Whether this phase is of the provided type.
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
).
Protected
updateRemoves all substitutes that were broken by this phase's invoked move
The
MoveUseMode
corresponding to how this move was used.