Skip to content

Commit

Permalink
Make on-summon abilities trigger after the switch check
Browse files Browse the repository at this point in the history
  • Loading branch information
DayKev committed Jul 24, 2024
1 parent c37527c commit 0cf1b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/battle-scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2056,8 +2056,8 @@ export default class BattleScene extends SceneBase {
const conditionalPhase = this.conditionalQueue.shift();
// Evaluate the condition associated with the phase
if (conditionalPhase[0]()) {
// If the condition is met, add the phase to the front of the phase queue
this.unshiftPhase(conditionalPhase[1]);
// If the condition is met, add the phase to the phase queue
this.pushPhase(conditionalPhase[1]);
} else {
// If the condition is not met, re-add the phase back to the front of the conditional queue
this.conditionalQueue.unshift(conditionalPhase);
Expand Down

0 comments on commit 0cf1b7b

Please sign in to comment.