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>2025-02-15 15:52:46 +0100
commitd628ce1a97686a77417946d86ce3346db588ea05 (patch)
treecbfebe7e8fb9edf38b72c4ef76f85734494f1dcb /play.js
parentab2604ea91bb47663199026f71a0552ccd2ad05a (diff)
downloadmaria-d628ce1a97686a77417946d86ce3346db588ea05.tar.gz
Add combat card play validation phase.
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 a954e2d..f78c7fb 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
@@ -1872,6 +1873,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(" ")
}
@@ -1961,6 +1963,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) {