Force a given Pokemon to be terastallized to the given type.
The pokemon to terastallize.
The PokemonType to terastallize into; defaults to the pokemon's primary type.
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: falseWhether to only return BattlerIndexes instead of full Pokemon objects
(such as for comparison with other speed order-related mechanisms); default false
An array containing all on-field Pokemon in order of descending Speed.
Speed ties are returned in increasing order of index.
Helper function to return all on-field Pokemon in speed order (fastest first).
Whether to only return BattlerIndexes instead of full Pokemon objects
(such as for comparison with other speed order-related mechanisms); default false
An array containing the BattlerIndexes of all on-field Pokemon on the field in order of descending Speed.
Speed ties are returned in increasing order of index.
Mocks a pokemon's ability, overriding its existing ability (takes precedence over global overrides). Useful for giving exactly 1 Pokemon in a double battle a certain ability (rather than all pokemon).
A MockInstance object
Helper to manage pokemon