Move weather effects to the end of the turn
This commit is contained in:
1 parent
64da443fa6
commit
9212d3642a
2 files changed
+6
-7
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user