pokemon-rogue-battle
    Preparing search index...

    Class ContactProtectedTag

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isBatonPassable: boolean
    lapseTypes: BattlerTagLapseType[]
    sourceId?: number
    sourceMove: Moves
    turnCount: number

    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.

      Parameters

      • source: any

        The battler tag to load

      Returns void

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

      Parameters

      • _attacker: default

        The pokemon using the contact move

      • _user: default

        The pokemon that is being attacked and has the tag

      Returns void