Call saveSystem on gacha pull outside of current battle

pull/895/head
Flashfyre 2024-05-15 01:29:07 -04:00
parent c6973365cb
commit 7e0e4ecd6d
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
this.scene.gameData.gameStats.eggsPulled++; this.scene.gameData.gameStats.eggsPulled++;
} }
this.scene.gameData.saveAll(this.scene, true, true, true).then(success => { (this.scene.currentBattle ? this.scene.gameData.saveAll(this.scene, true, true, true) : this.scene.gameData.saveSystem()).then(success => {
if (!success) if (!success)
return this.scene.reset(true); return this.scene.reset(true);
doPull(); doPull();