diff options
-rw-r--r-- | play.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -667,7 +667,6 @@ function on_update() { ui.hand.replaceChildren() for (let c of view.hand) ui.hand.appendChild(ui.cards[c]) - console.log('ui.hand', ui.hand) ui.power_hand.replaceChildren() if (view.power_hand) @@ -695,6 +694,10 @@ function on_update() { ui.discard.replaceChildren() for (let c of view.strategy_discard) ui.discard.appendChild(ui.cards[c]) + if (view.discard) + document.getElementById("discard_panel").classList.remove("hide") + else + document.getElementById("discard_panel").classList.add("hide") ui.removed.replaceChildren() for (let c of view.strategy_removed) |