summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-27 16:00:37 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-27 16:00:37 +0000
commit54bbd6d6c9b5758884b1a42fbac6cff727873642 (patch)
treed2764d4cc66a54273cc36b893010182da22566ad /play.js
parent9971dc265828ac89d465ed9955efd3f86b3fe956 (diff)
download1989-dawn-of-freedom-54bbd6d6c9b5758884b1a42fbac6cff727873642.tar.gz
Add check for view.show_opp_hand
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/play.js b/play.js
index 23d7c45..d118b74 100644
--- a/play.js
+++ b/play.js
@@ -666,9 +666,9 @@ function on_update() {
if (view.power_hand)
for (let c of view.power_hand)
ui.power_hand.appendChild(ui.power_cards[c])
-
+
ui.opp_hand.replaceChildren()
- if (view.opp_hand)
+ if (view.show_opp_hand && view.opp_hand)
for (let c of view.opp_hand)
ui.opp_hand.appendChild(ui.cards[c])