summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-07-20 19:05:49 +0200
committerTor Andersson <tor@ccxvii.net>2024-07-20 19:07:29 +0200
commit209b4f203e58606a92e2ac52ac99417bef988b53 (patch)
tree2b46e9b99d738e705ab0444911cc22ade0ae0498
parent75aee052bc24f579083e34697e9ba886d7896895 (diff)
downloadfriedrich-209b4f203e58606a92e2ac52ac99417bef988b53.tar.gz
remove retroactive conquest markers when OO fails
-rw-r--r--rules.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 9c3ffd3..0f645bd 100644
--- a/rules.js
+++ b/rules.js
@@ -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 */