AbstractOptionalsourceMove: MoveIdOptionalsourceId: numberPrivate#isPrivate#lapseOptionalsourceThe PID of the Pokemon that added this tag, or undefined if not set by a Pokemon.
OptionalsourceThe MoveId that created this tag, or undefined if not set by a move.
ReadonlytagThe tag's remaining duration.
The set of lapse types that this tag can be automatically lapsed with.
If this is exclusively BattlerTagLapseType.CUSTOM, then the tag can only ever be lapsed
manually via Pokemon.lapseTag (or calling the tag's lapse method directly)
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
AbstractisApply the battler tag's effects based on the lapse type
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.
AbstractselectionGet 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
isMoveRestrictedto 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.Todo
Require descendant subclasses to inherit a
PRE_MOVElapse type