mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 22:02: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) {
|
if (this.victory) {
|
||||||
|
if (Utils.isLocal) {
|
||||||
|
doGameOver(true);
|
||||||
|
} else {
|
||||||
Utils.apiFetch(`savedata/newclear?slot=${this.scene.sessionSlotId}`, true)
|
Utils.apiFetch(`savedata/newclear?slot=${this.scene.sessionSlotId}`, true)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(newClear => doGameOver(newClear));
|
.then(newClear => doGameOver(newClear));
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
doGameOver(false);
|
doGameOver(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user