summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-24 13:57:51 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-01 16:11:22 +0200
commite8ace74b32b9a7426483e17fa0b56c047f7492af (patch)
tree44a0dc21c63b98642c00b7cacf9bb79883ba671c
parentd37c179b263c002f20e550583ebc81a54080e2ab (diff)
downloadwaterloo-campaign-1815-e8ace74b32b9a7426483e17fa0b56c047f7492af.tar.gz
Only recall lonely grand battery after French moves.
-rw-r--r--rules.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 4350a40..2417b2e 100644
--- a/rules.js
+++ b/rules.js
@@ -10,7 +10,7 @@
// TODO: june 15 special rules
-// TODO: pause after last battle before next turn
+// TODO: pause after last battle before next turn (do not auto-pass move and attack?)
// TODO: confirm attack step?
// TODO: roll attack step?
@@ -360,9 +360,11 @@ function eliminate_detachments_stacked_with_corps(c) {
}
function recall_grand_battery_alone() {
- let x = piece_hex(GRAND_BATTERY)
- if (is_map_hex(x) && !hex_has_any_piece(x, friendly_corps()))
- recall_detachment(GRAND_BATTERY)
+ if (game.active === P1) {
+ let x = piece_hex(GRAND_BATTERY)
+ if (is_map_hex(x) && !hex_has_any_piece(x, friendly_corps()))
+ recall_detachment(GRAND_BATTERY)
+ }
}
function recall_detachment(p) {