Protected
battlerProtected
reflectedProtected
targetsProtected
applyProtected
applyProtected
applyApplies effects that trigger on HIT (i.e. Final Gambit, Power-Up Punch, Drain Punch)
The Pokemon
using this phase's invoked move
Pokemon
the current target of this phase's invoked move
true
if this is the first hit in a multi-hit attack
true
if this is the last hit in a multi-hit attack
true
if target is the first target hit by this strike of move
a function intended to be passed into a then()
call.
Protected
applyApplies non-self-targeted effects that trigger POST_APPLY
(i.e. Smelling Salts curing Paralysis, and the forced switch from U-Turn, Dragon Tail, etc)
a function intended to be passed into a then()
call.
Protected
applyProtected
applyApplies all effects and attributes that require a move to connect with a target, namely reactive effects like Weak Armor, on-hit effects like that of Power-Up Punch, and item stealing effects
The Pokemon
using this phase's invoked move
Pokemon
the current target of this phase's invoked move
true
if this is the first hit in a multi-hit attack
true
if this is the last hit in a multi-hit attack
true
if the target is protected by effects such as Protect
The HitResult
of the attempted move
true
if target is the first target hit by this strike of move
a function intended to be passed into a then()
call.
Check 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 semiInvulnerbale tag to check against
true
if the move can ignore the semi-invulnerable state
Protected
getA new MoveEffectPhase
with the same properties as this phase
Protected
removeRemoves the given Pokemon
from this phase's target list
Indicates that the move was reflected by the user due to magic coat or magic bounce