PokéRogue
    Preparing search index...

    BattlerTag that represents the Confusion status condition

    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.

    tagType: CONFUSED = BattlerTagType.CONFUSED
    turnCount: number

    The tag's remaining duration.

    Accessors

    Methods

    • 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.

    • Tick down the confusion duration and, if there are remaining turns, activate the confusion effect

      Parameters

      Returns boolean

      true if the tag should remain active (i.e. turnCount > 0)

      Handles playing the confusion animation, displaying the message(s), rolling for self-damage, and cancelling the move phase if the user hurts itself.