From 9751557b2aabdb3f6550c6f39dee466c834964a1 Mon Sep 17 00:00:00 2001
From: Tor Andersson <tor@ccxvii.net>
Date: Sun, 17 Dec 2023 13:31:09 +0100
Subject: x

---
 play.js  | 6 ++++--
 rules.js | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/play.js b/play.js
index a104ed1..ac3ef91 100644
--- a/play.js
+++ b/play.js
@@ -358,8 +358,10 @@ function on_update() {
 	let w1 = data.cards[view.front[0][0]].wing
 	let w2 = data.cards[view.front[1][0]].wing
 
-	ui.role_panel[0].className = "role " + side_color[w1]
-	ui.role_panel[1].className = "role " + side_color[w2]
+	ui.role_panel[0].classList.add(side_color[w1])
+	ui.role_panel[0].classList.remove(side_color[w2])
+	ui.role_panel[1].classList.add(side_color[w2])
+	ui.role_panel[1].classList.remove(side_color[w1])
 
 	ui.role_name[0].textContent = data.scenarios[view.scenario].players[0].name
 	ui.role_name[1].textContent = data.scenarios[view.scenario].players[1].name
diff --git a/rules.js b/rules.js
index bca5b72..d7428b5 100644
--- a/rules.js
+++ b/rules.js
@@ -2550,7 +2550,7 @@ states.bombard = {
 		view.actions.bombard = 1
 	},
 	bombard() {
-		log("Bombard\nC" + c)
+		log("Bombard\nC" + game.selected)
 
 		let opp = 1 - player_index()
 		game.morale[opp] --
-- 
cgit v1.2.3