pokemon-rogue-battle
    Preparing search index...

    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 Summary)

    Index

    Constructors

    • Creates a new SwitchPhase

      Parameters

      • switchType: SwitchType

        SwitchType The type of switch logic this phase implements

      • 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

    Methods