diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-07-20 19:05:49 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-07-20 19:07:29 +0200 |
commit | 209b4f203e58606a92e2ac52ac99417bef988b53 (patch) | |
tree | 2b46e9b99d738e705ab0444911cc22ade0ae0498 | |
parent | 75aee052bc24f579083e34697e9ba886d7896895 (diff) | |
download | friedrich-209b4f203e58606a92e2ac52ac99417bef988b53.tar.gz |
remove retroactive conquest markers when OO fails
-rw-r--r-- | rules.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -485,8 +485,14 @@ function remove_secondary_objectives(power) { } function remove_offensive_option_objectives() { - for (let s of primary_objective[P_PRUSSIA]) + for (let s of primary_objective[P_PRUSSIA]) { set_delete(game.conquest, s) + set_delete(game.retro, s) + if (game.move_conq) + set_delete(game.move_conq, s) + if (game.move_reconq) + set_delete(game.move_reconq, s) + } } /* STATE */ |