From 496d5451fc34d5eb92ff331a7d09e8573dd198d6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 1 Dec 2024 16:50:28 +0100 Subject: Don't allow re-entering supply trains on Flanders map. --- rules.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 0afc5c0..50486c5 100644 --- a/rules.js +++ b/rules.js @@ -3271,15 +3271,21 @@ function has_re_entry_space_for_supply_train(pow) { } function gen_re_enter_train_at_power_fortress(pow) { - for (let s of all_home_country_major_fortresses[pow]) + for (let s of all_home_country_major_fortresses[pow]) { + if (is_intro() && is_flanders_space(s)) + continue if (is_friendly_controlled_fortress(s) && !has_any_piece(s)) gen_action_space(s) + } } function can_re_enter_train_at_power_fortress(pow) { - for (let s of all_home_country_major_fortresses[pow]) + for (let s of all_home_country_major_fortresses[pow]) { + if (is_intro() && is_flanders_space(s)) + continue if (is_friendly_controlled_fortress(s) && !has_any_piece(s)) return true + } return false } -- cgit v1.2.3