summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/play.js b/play.js
index 8672373..3517802 100644
--- a/play.js
+++ b/play.js
@@ -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)