Sealed
Private
#isPrivate
#lapsePrivate
#sourceIs the source Pokemon "in focus," i.e. is it fully visible on the field?
Private
#spriteA reference to the sprite representing the Substitute doll
The substitute's remaining HP. If HP is depleted, the Substitute fades.
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
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)
Is the source Pokemon "in focus," i.e. is it fully visible on the field?
A reference to the sprite representing the Substitute doll
Apply the battler tag's effects based on the lapse type
true
if the tag should be kept (turnCount
> 0`)
When given a battler tag or json representing one, load the data for it.
An object containing the necessary properties to load the tag
Sets the Substitute's HP and queues an on-add battle animation that initializes the Substitute's sprite.
Triggers an animation that brings the Pokemon out of focus after it uses a move
If the Substitute redirects damage, queue a message to indicate it.
Triggers an animation that brings the Pokemon into focus before it uses a move
Queues an on-remove battle animation that removes the Substitute's sprite.
Tag implementing the Substitute Doll effect, for use with the moves Substitute and Shed Tail. Pokemon with this tag deflect most forms of received attack damage onto the tag. This tag also grants immunity to most Status moves and several move effects.