diff options
-rw-r--r-- | rules.js | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -19,7 +19,7 @@ // RULES: can fortress supplied units be part of supply lines for non-fortress supplied units for withdrawals to base? // RULES: can non-fortress supplied units be part of supply lines for fortress supplied units for withdrawals? -// RULES: for sea redeployment, can bases be "besieged"? (yes) +// RULES: for sea redeployment, can bases be "besieged"? (NO?) // RULES: may units redeploying out of battle hex leave disrupted units behind to be routed? (no) // RULES: may units returning for refit enter enemy supply network? (no) @@ -856,6 +856,12 @@ function set_fortress_friendly_controlled(fortress) { return set_fortress_captured(fortress) } +function is_port_besieged(port) { + if (port === EL_AGHEILA || port === ALEXANDRIA) + return false + return is_fortress_besieged(port) +} + function is_fortress_besieged(fortress) { let result = false let besieged = is_fortress_axis_controlled(fortress) ? has_allied_unit : has_axis_unit @@ -4612,7 +4618,7 @@ function can_redeploy_from(from) { return true } -function is_controlled_port(where) { +function is_port_friendly(where) { if (where === BARDIA || where === BENGHAZI || where === TOBRUK) return is_fortress_friendly_controlled(where) return true @@ -4625,9 +4631,9 @@ function sea_redeploy_cost(from, to) { return 0 if ((from === TOBRUK || to === TOBRUK) && game.buildup.tobruk === 0) return 0 - if (is_controlled_port(from) && is_controlled_port(to)) { - let b_from = is_fortress_besieged(from) - let b_to = is_fortress_besieged(to) + if (is_port_friendly(from) && is_port_friendly(to)) { + let b_from = is_port_besieged(from) + let b_to = is_port_besieged(to) if (b_from && b_to) return 0 if (b_from || b_to) { |