diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-09-24 13:57:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-01 16:11:22 +0200 |
commit | e8ace74b32b9a7426483e17fa0b56c047f7492af (patch) | |
tree | 44a0dc21c63b98642c00b7cacf9bb79883ba671c /rules.js | |
parent | d37c179b263c002f20e550583ebc81a54080e2ab (diff) | |
download | waterloo-campaign-1815-e8ace74b32b9a7426483e17fa0b56c047f7492af.tar.gz |
Only recall lonely grand battery after French moves.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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) { |