From e8ace74b32b9a7426483e17fa0b56c047f7492af Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Sep 2023 13:57:51 +0200 Subject: Only recall lonely grand battery after French moves. --- rules.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'rules.js') 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) { -- cgit v1.2.3