From 2aba9e15b5e63f952ebbc1d525665f137fc7c0a0 Mon Sep 17 00:00:00 2001
From: iainp5 <iain.pearce.ip@gmail.com>
Date: Thu, 20 Mar 2025 18:10:01 +0000
Subject: Fix support surges with no power cards in deck

---
 play.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'play.js')

diff --git a/play.js b/play.js
index 4bdf51b..cf16c20 100644
--- a/play.js
+++ b/play.js
@@ -725,12 +725,14 @@ function on_update() {
 	if (view.is_pwr_struggle) {
 		roles.Democrat.stat.textContent = `${pluralize(view.democrat_power_hand, 'Power card')}`
 		roles.Communist.stat.textContent = `${pluralize(view.communist_power_hand, 'Power card')}`
+		ui.turn_info.innerText = `Power Struggle deck: ${pluralize(view.power_struggle_deck, 'card')}`
 	} else {
 		roles.Democrat.stat.textContent = `${pluralize(view.democrat_hand,'card')}`
 		roles.Communist.stat.innerText = `${pluralize(view.communist_hand, 'card')}`
+		ui.turn_info.innerText = `Strategy deck: ${pluralize(view.strategy_deck, 'card')}`
 	}
 
-	ui.turn_info.innerText = `Strategy deck: ${pluralize(view.strategy_deck, 'card')}`
+	
 
 	// UPDATE TRACK MARKERS
 	layout_turn_marker()
-- 
cgit v1.2.3