Readonly
eventAll currently-active PositionalTag
s on both sides of the field,
sorted by tag type.
All currently-active ArenaTag
s on both sides of the field.
Add a new ArenaTag
to the arena, triggering overlap effects on existing tags as applicable.
The ArenaTagType
of the tag to add.
The number of turns the newly-added tag should last.
The MoveId
of the move creating the tag, or undefined
if not from a move.
The PID
of the Pokemon creating the tag.
The ArenaTagSide
(s) to which the tag should apply; default ArenaTagSide.BOTH
.
Whether to suppress messages produced by tag addition; default false
.
true
if the tag was successfully added without overlapping.
// TODO: Do we need the return value here? literally nothing uses it
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.
Attempt to get a tag from the Arena via getTagOnSide
that applies to both sides
The ArenaTagType
to retrieve
The existing ArenaTag
, or undefined
if not present.
Attempt to get a tag from the Arena via getTagOnSide
that applies to both sides
The constructor of the ArenaTag
to retrieve
The existing ArenaTag
, or undefined
if not present.
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
Optional
attempt: numberOptional
luckValue: numberOptional
isBoss: booleanClears 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: PokemonPokemon
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: PokemonPokemon
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).