From 54bbd6d6c9b5758884b1a42fbac6cff727873642 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sun, 27 Oct 2024 16:00:37 +0000 Subject: Add check for view.show_opp_hand --- play.js | 4 ++-- 1 file 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]) -- cgit v1.2.3