summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-28 14:13:27 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commitf34c5dc29648a49ef1b128fef33e0748c811c991 (patch)
treebdbf0a7f5eba4c9164c402508b2f3d2d4690c42d /play.js
parentb4b2b86d439e6bac48ab119b23d683c33988772f (diff)
downloadfriedrich-f34c5dc29648a49ef1b128fef33e0748c811c991.tar.gz
offensive option failure
Diffstat (limited to 'play.js')
-rw-r--r--play.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/play.js b/play.js
index 04a75c8..039e1a5 100644
--- a/play.js
+++ b/play.js
@@ -150,8 +150,12 @@ function count_total_objectives(pow) {
let n = objective1[pow].length
if (!has_eased_victory(pow))
n += objective2[pow].length
- if (pow === P_PRUSSIA && !view.oo)
- n = 0
+ if (pow === P_PRUSSIA) {
+ if (view.oo === 0)
+ n = 0
+ if (view.oo < 0 && set_has(view.fate, FC_POEMS) && set_has(view.fate, FC_LORD_BUTE))
+ n = 0
+ }
if (pow === P_AUSTRIA && view.oo)
n -= 4
return n