pokemon-rogue-battle
    Preparing search index...

    Class RandomMovesetMoveAttr

    Attribute used to call a random move in the user or party's moveset. Used for Moves.ASSIST and Moves.SLEEP_TALK

    Fails if the user has no callable moves.

    Invalid moves are indicated by what is passed in to invalidMoves: invalidAssistMoves or invalidSleepTalkMoves

    getCondition for move selection

    Hierarchy

    • CallMoveAttr
      • RandomMovesetMoveAttr
    Index

    Constructors

    Properties

    hasTarget: boolean
    invalidMoves: ReadonlySet<Moves>
    selfTarget: boolean

    Should this Move target the user?

    Methods

    • User calls a random moveId selected in getCondition

      Parameters

      • user: default

        Pokemon that used the move and will call a random move

      • target: default

        Pokemon that will be targeted by the random move (if single target)

      • move: default

        Move being used

      • args: any[]

        Unused

      Returns boolean