Sealed
Optional
sourceThe PID
of the Pokemon that added this tag, or undefined
if not set by a pokemon
Optional
sourceThe MoveId
that created this tag, or undefined
if not set by a move
Readonly
tagThe tag's remaining duration
Tick down this BattlerTag
's duration.
The Pokemon
whom this tag belongs to.
Unused by default but can be used by subclasses.
The BattlerTagLapseType
being lapsed.
Unused by default but can be used by subclasses.
true
if the tag should be kept (turnCount
> 0`)
Load the data for a given BattlerTag
or JSON representation thereof.
Should be inherited from by any battler tag with custom attributes.
An object containing the fields needed to reconstruct this tag.
Adds a stockpile stack to a pokemon, up to a maximum of 3 stacks. Note that onOverlap defers to this method.
If a stack is added, a message is displayed and the pokemon's DEF and SPDEF are increased by 1. For each stat, an internal counter is incremented (by 1) if the stat was successfully changed.
Removing the tag removes all stacks, and the pokemon's DEF and SPDEF are decreased by one stage for each stack which had successfully changed that particular stat during onAdd.
Battler tag enabling the Stockpile mechanic. This tag handles:
Stack tracking, including max limit enforcement (which is replicated in Stockpile for redundancy).
Stat changes on adding a stack. Adding a stockpile stack attempts to raise the pokemon's DEF and SPDEF by +1.
Stat changes on removal of (all) stacks.