mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +02:00
Revert 07646fe
(not needed due to stable sort)
This commit is contained in:
parent
07646feabe
commit
ea77d6f771
@ -71,8 +71,7 @@ export class PostSummonPhasePriorityQueue extends PhasePriorityQueue {
|
|||||||
const phasePokemon = phase.getPokemon();
|
const phasePokemon = phase.getPokemon();
|
||||||
|
|
||||||
phasePokemon.getAbilityPriorities().forEach(priority => {
|
phasePokemon.getAbilityPriorities().forEach(priority => {
|
||||||
// Treat all activation phases of zero or lower priority as one stage lower to ensure that they activate after the normal PostSummonPhase
|
this.queue.push(new PostSummonActivateAbilityPhase(phasePokemon.getBattlerIndex(), priority));
|
||||||
this.queue.push(new PostSummonActivateAbilityPhase(phasePokemon.getBattlerIndex(), priority - +(priority <= 0)));
|
|
||||||
globalScene.appendToPhase(
|
globalScene.appendToPhase(
|
||||||
new ActivatePriorityQueuePhase(DynamicPhaseType.POST_SUMMON),
|
new ActivatePriorityQueuePhase(DynamicPhaseType.POST_SUMMON),
|
||||||
ActivatePriorityQueuePhase,
|
ActivatePriorityQueuePhase,
|
||||||
|
Loading…
Reference in New Issue
Block a user