pokemon-rogue-battle
    Preparing search index...

    Class ContactProtectedTagAbstract

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    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.

    • Load the data for a given BattlerTag or JSON representation thereof. Should be inherited from by any battler tag with custom attributes.

      Type Parameters

      Parameters

      • source: BaseBattlerTag & Pick<T, "tagType">

        An object containing the fields needed to reconstruct this tag.

      Returns void

    • 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