Readonly
eventArenaTagType
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
Rest
...args: unknown[]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
Rest
...args: unknown[]array of parameters that the called upon tags may need
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
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
Attempts to set a new weather to the battle
WeatherType
new WeatherType
to set
boolean if the new weather is from a pokemon
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
Adds a new tag to the arena