diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -40,6 +40,7 @@ const ui = { event_reminder_list: document.getElementById("event_reminder_list"), played_card: document.getElementById("played_card"), + scoring_card: document.getElementById("scoring_card"), played_power_card: document.getElementById("played_power_card"), hand: document.getElementById("hand"), power_hand: document.getElementById("power_hand"), @@ -370,9 +371,14 @@ function on_update() { // UPDATE CARD DISPLAYS ui.played_card.replaceChildren() - if (view.played_card > 0) - ui.played_card.appendChild(ui.cards[view.played_card]) - + + if (!view.is_pwr_struggle) { + if (view.played_card > 0) + ui.played_card.appendChild(ui.cards[view.played_card]) + } else { + if (view.played_card > 0) + ui.scoring_card.appendChild(ui.cards[view.played_card]) + } ui.played_power_card.replaceChildren() if (view.played_power_card > 0) ui.played_power_card.appendChild(ui.power_cards[view.played_power_card]) |