Skip to content

Commit

Permalink
Fixed errors from previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
frutescens committed Nov 6, 2024
1 parent 342a3b4 commit 1508358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phases/encounter-phase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, battle.waveIndex % 5 === 1 || (this.scene.lastSavePlayTime ?? 0) >= 300
this.scene.gameData.saveAll(this.scene, true, battle.waveIndex % 5 === 1 || (this.scene.lastSavePlayTime ?? 0) >= 300).then(success => {
this.scene.disableMenu = false;
if (!success) {
return this.scene.reset(true);
Expand Down

0 comments on commit 1508358

Please sign in to comment.