summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-17 17:10:46 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit886331ee11f3f5e64971a0575a0aeb9f85d7f8b7 (patch)
tree56e417810e4c64978030f2cde444c86a4a8d3f90
parent6aa47f2238ea93b1c525430b814dcda1168a6ad7 (diff)
downloadtable-battles-886331ee11f3f5e64971a0575a0aeb9f85d7f8b7.tar.gz
cannot bombard last cube
-rw-r--r--rules.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index d7428b5..4c0d6c9 100644
--- a/rules.js
+++ b/rules.js
@@ -1927,6 +1927,13 @@ function can_take_action(c, a, ix) {
return false
}
+ if (a.type === "Bombard") {
+ // cannot Bombard last morale cube
+ let p = player_index()
+ if (game.morale[1-p] === 1)
+ return false
+ }
+
if (game.scenario === S8_BROOKLYN_HEIGHTS) {
if (c === S8_CLINTON) {
// Clinton - may only attack if both Grant and Hessians have dice on them.