From 75489ebdb579b01122855d4dfa2a767be6574d51 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 31 Dec 2022 13:34:44 +0100 Subject: Units assigned fortress supply MUST withdraw using fortress supply. ... so don't skip calculating the withdrawal fortress supply lines even if the fortress is not isolated anymore. --- rules.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 4e78cd5..654ec9d 100644 --- a/rules.js +++ b/rules.js @@ -2868,17 +2868,20 @@ function save_withdrawal_supply_lines() { let net = game.withdraw.supply_net = friendly_supply_network().slice() game.withdraw.supply_line = friendly_supply_line().slice() - if (!net[BARDIA] && is_fortress_friendly_controlled(BARDIA)) { + // Units assigned fortress supply MUST withdraw using fortress supply lines, + // even if they are currently in the base supply network. + + if (is_fortress_friendly_controlled(BARDIA)) { game.withdraw.bardia_net = bardia_supply_network().slice() game.withdraw.bardia_line = bardia_supply_line().slice() } - if (!net[BENGHAZI] && is_fortress_friendly_controlled(BENGHAZI)) { + if (is_fortress_friendly_controlled(BENGHAZI)) { game.withdraw.benghazi_net = benghazi_supply_network().slice() game.withdraw.benghazi_line = benghazi_supply_line().slice() } - if (!net[TOBRUK] && is_fortress_friendly_controlled(TOBRUK)) { + if (is_fortress_friendly_controlled(TOBRUK)) { game.withdraw.tobruk_net = tobruk_supply_network().slice() game.withdraw.tobruk_line = tobruk_supply_line().slice() } -- cgit v1.2.3