From 237905e50c8e2fb36a250fac5656b28396ed614e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 18 Dec 2024 16:37:10 +0100 Subject: Add combat card play validation phase. --- play.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'play.js') diff --git a/play.js b/play.js index 9a3ac97..7529a8b 100644 --- a/play.js +++ b/play.js @@ -125,6 +125,7 @@ const V_POLITICS = 1 const V_HUSSARS = 2 const V_MOVEMENT = 4 const V_RETREAT = 8 +const V_COMBAT = 16 const SPADES = 0 const CLUBS = 1 @@ -1837,6 +1838,7 @@ function phase_list(phase) { if (phase & V_POLITICS) list.push("politics") if (phase & V_HUSSARS) list.push("hussars") if (phase & V_MOVEMENT) list.push("movement") + if (phase & V_COMBAT) list.push("combat") if (phase & V_RETREAT) list.push("retreat") return list.join(" ") } @@ -1926,6 +1928,8 @@ function propose_deal() { window.b_phase_movement.checked = false window.a_phase_retreat.checked = false window.b_phase_retreat.checked = false + window.a_phase_combat.checked = false + window.b_phase_combat.checked = false form.a_power.value = view.power switch (view.power) { -- cgit v1.2.3