diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-12-01 16:50:28 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-12-01 16:50:28 +0100 |
commit | 496d5451fc34d5eb92ff331a7d09e8573dd198d6 (patch) | |
tree | cc10c4535fc616c74eb061304ee507be4f9240ec /rules.js | |
parent | 3e1845379d59733bb58631d929f88747af815911 (diff) | |
download | maria-496d5451fc34d5eb92ff331a7d09e8573dd198d6.tar.gz |
Don't allow re-entering supply trains on Flanders map.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 } |