SealedRemove all elements from the queue.
An element matching the condition function
Whether an element matching the condition function exists
SealedWhether the queue is empty
SealedReorder the queue before removing and returning the highest priority element.
The front-most element of the queue after sorting,
or undefined if the queue is empty.
PrivatequeueQueues all necessary PostSummonActivateAbilityPhases for each pushed PostSummonPhase
The PostSummonPhase that was pushed onto the queue
Remove the first element in the queue matching a given condition.
If provided, will restrict the removal to only entries matching the given condition
Whether a removal occurred
ProtectedreorderSort the elements currently in the queue.
Priority Queue for
PostSummonPhaseandPostSummonActivateAbilityPhaseOrders phases first by ability priority, then by the Pokemon's effective speed