PokéRogue
    Preparing search index...

    Helper to handle classic-mode specific operations.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    • Queue inputs to switch at the start of the next battle, and then start it.

      Parameters

      • pokemonIndex: number

        The 0-indexed position of the party pokemon to switch to. Should never be called with 0 as that will select the currently active pokemon and freeze

      Returns Promise<void>

      A Promise that resolves once the battle has been started and the switch prompt resolved

      Make this work for double battles

      await game.classicMode.runToSummon([SpeciesId.MIGHTYENA, SpeciesId.POOCHYENA])
      await game.startBattleWithSwitch(1);