PokéRogue
    Preparing search index...

    Abstract base class for all damaging trapping effects.

    Handles dealing damage and playing the appropriate animation.

    Hierarchy (View Summary)

    Index
    sourceId?: number

    The PID of the Pokemon that added this tag, or undefined if not set by a Pokemon.

    sourceMove?: MoveId

    The MoveId that created this tag, or undefined if not set by a move.

    tagType: FIRE_SPIN = BattlerTagType.FIRE_SPIN
    turnCount: number

    The tag's remaining duration.

    • get onAddMessageKey(): string

      Return the i18n locales key that will be shown when this tag is added.
      Within the text, {{pokemonNameWithAffix}} and {{sourcePokemonName}} will be populated with the name of the Pokemon to whom this Tag is attached and the source Pokemon's name, respectively.

      Returns string

      If this evaluates to an empty string, no message will be displayed.

    • get triggerMessageKey(): string
      Sealed

      Returns string

    • Check whether this Tag can be transferred to another Pokemon via Baton Pass.

      Parameters

      • recipient: Pokemon

        The Pokemon receiving this Tag (i.e. the one switching in) Unused by default but exposed to allow for subclasses to perform custom logic.

      Returns boolean

      Whether this Tag can be transferred via Baton Pass. Defaults to returning the value set in the class constructor.