Abstract
The current number of layers this tag has. Starts at 1 and increases each time the trap is laid.
The side of the field
that this arena tag affects.
Optional
sourceThe MoveId
that created this tag, or undefined
if not set by a move.
Abstract
Readonly
tagThe type of the arena tag
The tag's remaining duration. Setting to any number <=0
will make the tag's duration effectively infinite.
Protected
groundedWhether this tag should only affect grounded targets; default true
Abstract
maxThe maximum number of layers this tag can have.
Protected
Abstract
activateActivate the hazard effect onto a Pokemon when it enters the field.
true
if this hazard affects the given Pokemon; false
otherwise.
Protected
Abstract
getHelper function that retrieves the Pokemon affected
list of PlayerPokemon or EnemyPokemon on the field
Trigger this ArenaTag
's effect, reducing its duration as applicable.
Will ignore durations of all tags with durations <=0
.
true
if this tag should be kept; false
if it should be removed.
When given a arena tag or json representing one, load the data for it. This is meant to be inherited from by any arena tag with custom attributes
The arena tag being loaded
Abstract class to implement entry hazards. These persistent tags remain on-field across turns and apply effects to any
Pokemon
switching in.Uniquely, adding a tag multiple times may stack multiple "layers" of the effect, increasing its severity.