Readonly
eventAdds a new tag to the arena
ArenaTagType
the tag being added
How many turns the tag lasts
Moves
the move the tag came from, or undefined
if not from a move
The ID of the pokemon in play the tag came from (see BattleScene.getPokemonById)
ArenaTagSide
which side(s) the tag applies to
If a message should be queued on screen to announce the tag being added
Optional
targetIndex: BattlerIndexThe BattlerIndex
of the target pokemon
false
if there already exists a tag of this type in the Arena
Applies the specified tag to both sides (ie: both user and trainer's tag that match the Tag specified)
by calling ()
Either an ArenaTagType
string, or an actual ArenaTag
class to filter which ones to apply
if true
, this applies arena tags without changing game state
array of parameters that the called upon tags may need
Applies each ArenaTag
in this Arena, based on which side (self, enemy, or both) is passed in as a parameter
Either an ArenaTagType
string, or an actual ArenaTag
class to filter which ones to apply
ArenaTagSide
which side's arena tags to apply
if true
, this applies arena tags without changing game state
array of parameters that the called upon tags may need
Returns whether or not the terrain can be set to terrain
Returns weather or not the weather can be changed to weather
Uses findTagsOnSide
to filter (using the parameter function) for specific tags that apply to both sides
array of ArenaTag
s from which the Arena's tags return true and apply to both sides
Returns specific tags from the arena that pass the tagPredicate
function passed in as a parameter, and apply to the given side
a function mapping ArenaTag
s to boolean
s
The ArenaTagSide
to look at
array of ArenaTag
s from which the Arena's tags return true
and apply to the given side
The loop point of any given biome track, read as seconds and milliseconds.
Attempts to get a tag from the Arena via getTagOnSide
that applies to both sides
The ArenaTagType
or ArenaTag
to get
either the ArenaTag
, or undefined
if it isn't there
Attempts to get a tag from the Arena from a specific side (the tag passed in has to either apply to both sides, or the specific side only)
eg: MIST
only applies to the user's side, while MUD_SPORT
applies to both user and enemy side
The ArenaTagType
or ArenaTag
to get
The ArenaTagSide
to look at
either the ArenaTag
, or undefined
if it isn't there
Gets the denominator for the chance for a trainer spawn
n where 1/n is the chance of a trainer battle
Clears weather, terrain and arena tags when entering new biome or trainer battle.
Function to trigger all weather based form changes
Function to trigger all weather based form changes back into their normal forms
Attempts to set a new terrain effect to the battle
TerrainType
new TerrainType
to set
boolean if the terrain animation should be ignored
Optional
user: defaultPokemon
that caused the terrain effect
true if new terrain set, false if no terrain provided or attempting to set the same terrain as currently in use
Attempts to set a new weather to the battle
WeatherType
new WeatherType
to set
Optional
user: defaultPokemon
that caused the weather effect
true if new weather set, false if no weather provided or attempting to set the same weather as currently in use
Sets weather to the override specified in overrides.ts
new WeatherType
to set
true to force trySetWeather to return true
Saves the number of times a party pokemon faints during a arena encounter.
globalScene.currentBattle.enemyFaints
is the corresponding faint counter for the enemy (this resets every wave).