mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32:18 +02:00
Fixed clear freeze in offline mode
This commit is contained in:
parent
512cc5b965
commit
a6eb18c465
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user