Update battlescene to free memory when resetting

This commit is contained in:
Dean 2025-01-14 23:35:41 -08:00
parent 2914d74b27
commit 8b04eb97d6

View File

@ -1191,6 +1191,9 @@ export default class BattleScene extends SceneBase {
onComplete: () => {
this.clearPhaseQueue();
this.ui.freeUIData();
this.uiContainer.remove(this.ui, true);
this.uiContainer.destroy();
this.children.removeAll(true);
this.game.domContainer.innerHTML = "";
this.launchBattle();