diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-24 00:57:34 +0000 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-24 00:57:34 +0000 |
commit | 5e3e209e27fe5d844f0f44e902e469b3ef83d2a6 (patch) | |
tree | 3c42e634bc70f816a822160678a8cffa501d92a2 /rules.js | |
parent | 7df24c0ab1c6d0875c0aa6fb6c6956f78d218c18 (diff) | |
download | maria-5e3e209e27fe5d844f0f44e902e469b3ef83d2a6.tar.gz |
fix trigger for returning french markers
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -829,7 +829,7 @@ function set_control_of_fortress(s, pow) { } if (pow === P_FRANCE && game.vp[SET_ASIDE_FRANCE] > 0) { - if (set_has(all_core_austria_fortresses, s)) + if (is_bohemia_space(s)) return_set_aside_markers(P_FRANCE, SET_ASIDE_FRANCE) } @@ -2037,7 +2037,9 @@ function move_general_to(to, is_force_march) { if (!is_force_march && !is_out_of_supply(who)) { if (is_enemy_controlled_fortress(from)) { if (is_protected_from_conquest(from)) { - map_set(game.retro, from, coop_major_power(game.power)) + // first one to place has prio (austria/prag on flanders) + if (!map_has(game.retro, from)) + map_set(game.retro, from, coop_major_power(game.power)) } else { set_add(game.move_conq, from) set_control_of_fortress(from, coop_major_power(game.power)) |