pokemon-rogue-battle
    Preparing search index...

    Class MoveRestrictionBattlerTagAbstract

    Base class for tags that restrict the usage of moves. This effect is generally referred to as "disabling" a move in-game. This is not to be confused with Moves.DISABLE.

    Descendants can override isMoveRestricted to restrict moves that match a condition. A restricted move gets cancelled before it is used. Players and enemies should not be allowed to select restricted moves.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    Methods

    • Gets the text to display when a move's execution is prevented as a result of the restriction. Because restriction effects also prevent selection of the move, this situation can only arise if a pokemon first selects a move, then gets outsped by a pokemon using a move that restricts the selected move.

      Parameters

      Returns string

      text to display when the move is interrupted

    • Checks if this tag is restricting a move based on a user's decisions during the target selection phase

      Parameters

      Returns boolean

      false unless overridden by the child tag

    • 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

    • Gets the text to display when the player attempts to select a move that is restricted by this tag.

      Parameters

      • pokemon: default

        Pokemon for which the player is attempting to select the restricted move

      • move: Moves

        Moves ID of the move that is having its selection denied

      Returns string

      text to display when the player attempts to select the restricted move