Call saveSystem on gacha pull outside of current battle

This commit is contained in:
Flashfyre committed 2024-05-15 01:29:07 -04:00
1 parent c6973365cb
commit 7e0e4ecd6d
1 file changed
+1 -1
+1 -1
View File
@@ -372,7 +372,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
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)
return this.scene.reset(true);
doPull();