Move weather effects to the end of the turn

This commit is contained in:
Flashfyre committed 2023-07-04 16:16:50 -04:00
1 parent 64da443fa6
commit 9212d3642a
2 files changed
+6 -7

No files matched your search

+3 -3
View File
@@ -928,9 +928,6 @@ export class TurnStartPhase extends FieldPhase {
start() {
super.start();
if (this.scene.arena.weather)
this.scene.unshiftPhase(new WeatherEffectPhase(this.scene, this.scene.arena.weather));
const field = this.scene.getField();
const order = this.getOrder();
@@ -994,6 +991,9 @@ export class TurnStartPhase extends FieldPhase {
}
}
if (this.scene.arena.weather)
this.scene.pushPhase(new WeatherEffectPhase(this.scene, this.scene.arena.weather));
for (let o of order) {
if (field[o].status && field[o].status.isPostTurn())
this.scene.pushPhase(new PostTurnStatusEffectPhase(this.scene, o));