moved playerFaints reset to resetArenaEffects

This commit is contained in:
geeil-han 2025-02-10 05:34:05 +01:00
parent 9ef29b7d90
commit 1d73eebddf
2 changed files with 1 additions and 4 deletions

View File

@ -1344,7 +1344,6 @@ export default class BattleScene extends SceneBase {
if (newBattleType === BattleType.MYSTERY_ENCOUNTER) {
// Will generate the actual Mystery Encounter during NextEncounterPhase, to ensure it uses proper biome
this.currentBattle.mysteryEncounterType = mysteryEncounterType;
this.arena.resetPlayerFaintCount();
}
//this.pushPhase(new TrainerMessageTestPhase(this, TrainerType.RIVAL, TrainerType.RIVAL_2, TrainerType.RIVAL_3, TrainerType.RIVAL_4, TrainerType.RIVAL_5, TrainerType.RIVAL_6));
@ -1362,9 +1361,6 @@ export default class BattleScene extends SceneBase {
this.arena.updatePoolsForTimeOfDay();
}
if (resetArenaState) {
this.resetEnemyFaintCount();
this.arena.resetPlayerFaintCount();
this.arena.resetArenaEffects();
playerField.forEach((pokemon) => pokemon.lapseTag(BattlerTagType.COMMANDED));

View File

@ -694,6 +694,7 @@ export class Arena {
this.trySetWeather(WeatherType.NONE, false);
}
this.trySetTerrain(TerrainType.NONE, false, true);
this.resetPlayerFaintCount();
this.removeAllTags();
}