Opens the party selector UI and transitions into a SwitchSummonPhase for the player (if a switch would be valid for the current battle state).

Hierarchy (view full)

Constructors

  • Creates a new SwitchPhase

    Parameters

    • scene: default

      BattleScene Current battle scene

    • fieldIndex: number

      Field index to switch out

    • isModal: boolean

      Indicates if the switch should be forced (true) or is optional (false).

    • doReturn: boolean

      Indicates if the party member on the field should be recalled to ball or has already left the field. Passed to SwitchSummonPhase.

    Returns SwitchPhase

Properties

fieldIndex: number
scene: default

Methods