Helper to handle a Pokemon's move

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

game: default

Methods

  • Intercepts MoveEffectPhase and mocks the hitCheck's return value to false MoveEffectPhase.hitCheck. Used to force a move to miss.

    Parameters

    • firstTargetOnly: boolean = false

      Whether the move should force miss on the first target only, in the case of multi-target moves.

    Returns Promise<void>

  • Select the move to be used by the given Pokemon(-index). Triggers during the next CommandPhase

    Parameters

    • move: Moves

      the move to use

    • pkmIndex: 0 | 1 = 0

      the pokemon index. Relevant for double-battles only (defaults to 0)

    • OptionaltargetIndex: null | BattlerIndex

      The BattlerIndex of the Pokemon to target for single-target moves, or null if a manual call to selectTarget() is required

    Returns void