pokemon-rogue-battle
    Preparing search index...

    Priority Queue for PostSummonPhase and PostSummonActivateAbilityPhase

    Orders phases first by ability priority, then by the Pokemon's effective speed

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    queue: PostSummonPhase[] = []

    Methods

    • Attempt to remove one or more Phases from the current queue.

      Parameters

      • phaseFilter: (phase: Phase) => boolean

        The function to select phases for removal

      • removeCount: number | "all" = 1

        The maximum number of phases to remove, or all to remove all matching phases; default 1

      Returns number

      The number of successfully removed phases

      Remove this eventually once the patchwork bug this is used for is fixed