mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Update src/phases/encounter-phase.ts
Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
This commit is contained in:
parent
26ea281b9c
commit
342a3b416b
@ -226,7 +226,7 @@ export class EncounterPhase extends BattlePhase {
|
||||
this.scene.ui.setMode(Mode.MESSAGE).then(() => {
|
||||
if (!this.loaded) {
|
||||
this.trySetWeatherIfNewBiome(); // Set weather before session gets saved
|
||||
this.scene.gameData.saveAll(this.scene, true, true).then(success => {
|
||||
this.scene.gameData.saveAll(this.scene, true, battle.waveIndex % 5 === 1 || (this.scene.lastSavePlayTime ?? 0) >= 300
|
||||
this.scene.disableMenu = false;
|
||||
if (!success) {
|
||||
return this.scene.reset(true);
|
||||
|
Loading…
Reference in New Issue
Block a user