Abstract
Optional
sourceMove: MoveIdOptional
sourceId: numberOptional
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
Gets the text to display when a move's execution is prevented as a result of the restriction. Because restriction effects also prevent selection of the move, this situation can only arise if a pokemon first selects a move, then gets outsped by a pokemon using a move that restricts the selected move.
The text to display when the move is interrupted
Abstract
isTick down this BattlerTag
's duration.
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.
Abstract
selectionGet the text to display when the player attempts to select a move that is restricted by this tag.
The text to display when the player attempts to select the restricted move
Base class for tags that restrict the usage of moves. This effect is generally referred to as "disabling" a move in-game (not to be confused with
MoveId.DISABLE
).Descendants can override
isMoveRestricted
to restrict moves that match a condition. A restricted move gets cancelled before it is used. Players and enemies should not be allowed to select restricted moves.