PokéRogue
    Preparing search index...

    Class ContactProtectedTagAbstract

    Class for BattlerTags that apply some effect when hit by a contact move

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    "#isBatonPassable": boolean = false
    "#lapseTypes": readonly [BattlerTagLapseType, BattlerTagLapseType]
    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

    turnCount: number

    The tag's remaining duration

    Accessors

    Methods

    • Lapse the tag and apply onContact if the move makes contact and lapseType is custom, respecting the move's flags and the pokemon's abilities, and whether the lapseType is custom.

      Parameters

      Returns boolean

      Whether the tag continues to exist after the lapse.

    • Function to call when a contact move hits the pokemon with this tag.

      Parameters

      • _attacker: Pokemon

        The pokemon using the contact move

      • _user: Pokemon

        The pokemon that is being attacked and has the tag

      Returns void