Removes all phases from the queue
Sorts the elements in the queue
Attempt to remove one or more Phases from the current queue.
The function to select phases for removal
The maximum number of phases to remove, or all
to remove all matching phases;
default 1
The number of successfully removed phases
Priority Queue for
PostSummonPhase
andPostSummonActivateAbilityPhase
Orders phases first by ability priority, then by the Pokemon's effective speed