PokéRogue
    Preparing search index...

    Helper to manage pokemon

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    • Force a given Pokemon to be terastallized to the given type.

      Parameters

      • pokemon: Pokemon

        The pokemon to terastallize.

      • teraType: PokemonType = ...

        The PokemonType to terastallize into; defaults to the pokemon's primary type.

      Returns void

      This function only mocks the Pokemon's tera-related variables; it does NOT activate any tera-related abilities.

    • Helper function to return all on-field Pokemon in speed order (fastest first).

      Parameters

      • Optionalindices: false

        Whether to only return BattlerIndexes instead of full Pokemon objects (such as for comparison with other speed order-related mechanisms); default false

      Returns Pokemon[]

      An array containing all on-field Pokemon in order of descending Speed.
      Speed ties are returned in increasing order of index.

      This does not account for Trick Room as it does not modify the speed of Pokemon on the field, only their turn order.

    • Helper function to return all on-field Pokemon in speed order (fastest first).

      Parameters

      • indices: true

        Whether to only return BattlerIndexes instead of full Pokemon objects (such as for comparison with other speed order-related mechanisms); default false

      Returns BattlerIndex[]

      An array containing the BattlerIndexes of all on-field Pokemon on the field in order of descending Speed.
      Speed ties are returned in increasing order of index.

      This does not account for Trick Room as it does not modify the speed of Pokemon on the field, only their turn order.