[Bug] Fix sprite problem after player pokemon faint after enemy pokemon before/after trainer fight (#3211)

This commit is contained in:
allen925 2024-07-30 08:40:25 -07:00 committed by GitHub
parent f7459f24b0
commit cce68f6ef7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1140,7 +1140,7 @@ export default class BattleScene extends SceneBase {
}
if (resetArenaState) {
this.arena.resetArenaEffects();
playerField.forEach((_, p) => this.unshiftPhase(new ReturnPhase(this, p)));
playerField.forEach((_, p) => this.pushPhase(new ReturnPhase(this, p)));
for (const pokemon of this.getParty()) {
// Only trigger form change when Eiscue is in Noice form
@ -1153,7 +1153,7 @@ export default class BattleScene extends SceneBase {
applyPostBattleInitAbAttrs(PostBattleInitAbAttr, pokemon);
}
this.unshiftPhase(new ShowTrainerPhase(this));
this.pushPhase(new ShowTrainerPhase(this));
}
for (const pokemon of this.getParty()) {