The StatusEffect being applied.
The Pokemon applying the status effect to the target,
or null if the status is applied from a non-Pokemon source (hazards, etc.); default null.
OptionalsleepTurnsRemaining: numberThe number of turns to set StatusEffect.SLEEP for;
defaults to a random number between 2 and 4 and is unused for non-Sleep statuses.
The text to show for the source of the status effect, if any; default null.
A string containing text to be displayed upon status setting; defaults to normal key for status if empty or omitted.
ProtectedbattlerThe battler index this phase refers to, or the pokemon ID if greater than 3.
TODO: Make this either use IDs or BattlerIndexes, not a weird mix of both
ReadonlyphaseThe string name of the phase, used to identify the phase type for is
Private OptionalsleepThe number of turns to set StatusEffect.SLEEP for;
defaults to a random number between 2 and 4 and is unused for non-Sleep statuses.
PrivatesourceThe Pokemon applying the status effect to the target,
or null if the status is applied from a non-Pokemon source (hazards, etc.); default null.
PrivatestatusThe StatusEffect being applied.
PrivatestatusA string containing text to be displayed upon status setting; defaults to normal key for status if empty or omitted.
End the current phase and start a new one.
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.
Start the current phase.
The
BattlerIndexof the Pokemon obtaining the status effect.