mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 02:32:21 +02:00
moved playerFaints reset to resetArenaEffects
This commit is contained in:
parent
9ef29b7d90
commit
1d73eebddf
@ -1344,7 +1344,6 @@ export default class BattleScene extends SceneBase {
|
|||||||
if (newBattleType === BattleType.MYSTERY_ENCOUNTER) {
|
if (newBattleType === BattleType.MYSTERY_ENCOUNTER) {
|
||||||
// Will generate the actual Mystery Encounter during NextEncounterPhase, to ensure it uses proper biome
|
// Will generate the actual Mystery Encounter during NextEncounterPhase, to ensure it uses proper biome
|
||||||
this.currentBattle.mysteryEncounterType = mysteryEncounterType;
|
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));
|
//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();
|
this.arena.updatePoolsForTimeOfDay();
|
||||||
}
|
}
|
||||||
if (resetArenaState) {
|
if (resetArenaState) {
|
||||||
this.resetEnemyFaintCount();
|
|
||||||
this.arena.resetPlayerFaintCount();
|
|
||||||
|
|
||||||
this.arena.resetArenaEffects();
|
this.arena.resetArenaEffects();
|
||||||
|
|
||||||
playerField.forEach((pokemon) => pokemon.lapseTag(BattlerTagType.COMMANDED));
|
playerField.forEach((pokemon) => pokemon.lapseTag(BattlerTagType.COMMANDED));
|
||||||
|
@ -694,6 +694,7 @@ export class Arena {
|
|||||||
this.trySetWeather(WeatherType.NONE, false);
|
this.trySetWeather(WeatherType.NONE, false);
|
||||||
}
|
}
|
||||||
this.trySetTerrain(TerrainType.NONE, false, true);
|
this.trySetTerrain(TerrainType.NONE, false, true);
|
||||||
|
this.resetPlayerFaintCount();
|
||||||
this.removeAllTags();
|
this.removeAllTags();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user