Force a given Pokemon to Terastallize to the given type.
The pokemon to Terastallize
OptionalteraType: The PokemonType to Terastallize into;
defaults to pokemon's primary type if not provided
This function only mocks the Pokemon's tera-related variables.
If activating on-Terastallize effects is desired, use either MoveHelper.use with useTera=true
or MoveHelper.selectWithTera instead.
Passthrough for globalScene.getEnemyParty that adds a check that the party contains at least 1 pokemon.
The enemy party
Passthrough for globalScene.getEnemyPokemon that adds an undefined check for
the Pokemon so that the return type for the function doesn't have undefined.
This removes the need to add a ! like when calling game.scene.getEnemyPokemon()!.
Whether a pokemon that is currently switching out is valid, default true
The first EnemyPokemon that is on the field
and is active
(aka is allowed in battle).
Passthrough for globalScene.getPlayerParty that adds a check that the party contains at least 1 pokemon.
The enemy party
Passthrough for globalScene.getPlayerPokemon that adds an undefined check for
the Pokemon so that the return type for the function doesn't have undefined.
This removes the need to add a ! like when calling game.scene.getPlayerPokemon()!.
Whether a pokemon that is currently switching out is valid, default true
The first PlayerPokemon that is on the field
and is active
(aka is allowed in battle).
Helper function to return all on-field Pokemon in speed order (fastest first).
Optionalindices: false(Default false) Whether to only return BattlerIndexes instead of full Pokemon objects
(such as for comparison with other speed order-related mechanisms)
OptionalignoreOverride: boolean(Default true) Whether to ignore preset turn orders and speed-reversing effects (like Trick Room)
An array containing all on-field Pokemon in order of descending speed.
Helper function to return all on-field Pokemon in speed order (fastest first).
(Default false) Whether to only return BattlerIndexes instead of full Pokemon objects
(such as for comparison with other speed order-related mechanisms)
OptionalignoreOverride: boolean(Default true) Whether to ignore preset turn orders and speed-reversing effects (like Trick Room)
An array containing the BattlerIndexes of all on-field Pokemon in order of descending speed.
Forcibly set a given Pokemon's ability to the given value, overridding all other effects.
The newly created MockInstance object.
Forcibly set a given Pokemon's ability to the given value, overridding all other effects.
The newly created MockInstance object.
Helper to manage pokemon