The type of switch behavior
Position on the battle field
The index of pokemon (in party of 6) to switch into
Whether to render "comeback" dialogue
Whether the switch came from the player or enemy; default true
Private
Readonly
doProtected
fieldPrivate
lastProtected
partyReadonly
phaseThe string name of the phase, used to identify the phase type for is
Protected
playerPrivate
Readonly
slotPrivate
Readonly
switchEnd the current phase and start a new one.
Private
getGet the text to be displayed when a pokemon is forced to switch and leave the field.
The Pokemon having newly been sent in.
The text to display.
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.
Sends out a Pokemon before the battle begins and shows the appropriate messages
Start the current phase.
Enemy trainer or player trainer will do animations to throw Pokeball and summon a Pokemon to the field.
Handles tweening and battle setup for a wild Pokemon that appears outside of the normal screen transition. Wild Pokemon will ease and fade in onto the field, then perform standard summon behavior. Currently only used by Mystery Encounters, as all other battle types pre-summon wild pokemon before screen transitions.
Constructor for creating a new SwitchSummonPhase