Fixed clear freeze in offline mode

This commit is contained in:
unknown 2024-05-12 16:40:49 -03:00
parent 512cc5b965
commit a6eb18c465

View File

@ -3611,9 +3611,13 @@ export class GameOverPhase extends BattlePhase {
});
};
if (this.victory) {
Utils.apiFetch(`savedata/newclear?slot=${this.scene.sessionSlotId}`, true)
if (Utils.isLocal) {
doGameOver(true);
} else {
Utils.apiFetch(`savedata/newclear?slot=${this.scene.sessionSlotId}`, true)
.then(response => response.json())
.then(newClear => doGameOver(newClear));
}
} else
doGameOver(false);
}