summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-12-18 16:37:10 +0100
committerTor Andersson <tor@ccxvii.net>2024-12-18 23:03:26 +0100
commit237905e50c8e2fb36a250fac5656b28396ed614e (patch)
tree9128e933fe233c9178c02be067817f6dbd6b50d6 /play.js
parent64adb229d652bbe2cd6c441978a27625e0549191 (diff)
downloadmaria-237905e50c8e2fb36a250fac5656b28396ed614e.tar.gz
Add combat card play validation phase.HEADmaster
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 4 insertions, 0 deletions
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) {