Call saveSystem on gacha pull outside of current battle
parent
c6973365cb
commit
7e0e4ecd6d
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue