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
.
Optional
sleepTurnsRemaining: 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.
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
Private
Optional
sleepThe number of turns to set StatusEffect.SLEEP
for;
defaults to a random number between 2 and 4 and is unused for non-Sleep statuses.
Private
sourceThe Pokemon
applying the status effect to the target,
or null
if the status is applied from a non-Pokemon source (hazards, etc.); default null
.
Private
statusThe StatusEffect
being applied.
Private
statusA 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
BattlerIndex
of the Pokemon obtaining the status effect.