PokéRogue
    Preparing search index...
    • Forcibly add a STAB move to the Pokémon's moveset from the provided pools.

      Parameters

      • pool: Map<MoveId, number>

        The master move pool

      • tmPool: Map<MoveId, number>

        The TM move pool

      • eggPool: Map<MoveId, number>

        The egg move pool

      • pokemon: Pokemon

        The Pokémon for which the moveset is being generated

      • tmCount: ValueHolder<number>

        A holder for the count of TM moves selected

      • eggMoveCount: ValueHolder<number>

        A holder for the count of egg moves selected

      • willTera: boolean = false

        Whether the Pokémon is expected to Tera (i.e., has instant Tera on a Trainer Pokémon); default false

      • forceAnyDamageIfNoStab: boolean = false

        If true, will force any damaging move if no STAB move is available

      Returns void

      If no STAB move is available, add any damaging move. If no damaging move is available, no move is added