PokéRogue
    Preparing search index...

    Function sortInSpeedOrder

    • Sorts an array of Pokemon by speed, taking Trick Room into account.

      Type Parameters

      Parameters

      • pokemonList: T[]

        The list of Pokemon or objects containing Pokemon

      • shuffleFirst: boolean = true

        Whether to shuffle the list before sorting (to handle speed ties). Default true.

      Returns T[]

      The sorted array of Pokemon