Sealed
Removes all elements from the queue
Optional
condition: (t: PostSummonPhase) => booleanAn element matching the condition function
Optional
condition: (t: PostSummonPhase) => booleanWhether an element matching the condition function exists
Sealed
Whether the queue is empty
Sealed
Calls reorder
and shifts the queue
The front element of the queue after sorting, or undefined
if the queue is empty
Private
queueQueues all necessary PostSummonActivateAbilityPhase
s for each pushed PostSummonPhase
The PostSummonPhase
that was pushed onto the queue
Removes the first element matching the condition
An optional condition function (defaults to a function that always returns true
)
Whether a removal occurred
Protected
reorderSorts the elements in the queue
Priority Queue for
PostSummonPhase
andPostSummonActivateAbilityPhase
Orders phases first by ability priority, then by the Pokemon's effective speed