summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-04 13:51:50 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commitcd04c4c888f64d2d13bc17f722bd896b22acfe5c (patch)
tree5f9e2fe972848b5212631d7ad3294eb505b6c98f
parent91da6f9429174b64071faa2d88bb01819ab50e07 (diff)
downloadtable-battles-cd04c4c888f64d2d13bc17f722bd896b22acfe5c.tar.gz
Fix Rocoux + Austrians can_shift check.
-rw-r--r--rules.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 03e1d4b..01270f3 100644
--- a/rules.js
+++ b/rules.js
@@ -2328,6 +2328,13 @@ function can_shift_any_infantry() {
if (is_infantry(c)) {
if (get_sticks(c) > 1)
++m
+
+ if (game.scenario === S46_ROCOUX) {
+ // cannot shift to Austrians
+ if (c === S46_AUSTRIANS)
+ continue
+ }
+
++n
}
}