summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-18 13:15:30 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-18 13:15:30 +0200
commit5370b8d9add8726b7625c0d06aef19ec42408685 (patch)
tree90e0987f05d39c38fded55d289f5ec981b5d1b26
parent16c4b0c3f0ed8cd7af6f7fc1adebbc51428ad8f1 (diff)
downloadandean-abyss-5370b8d9add8726b7625c0d06aef19ec42408685.tar.gz
Check that there are available Sabotage markers in sabotage phase.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index d7e3a9b..cd158f6 100644
--- a/rules.js
+++ b/rules.js
@@ -6109,6 +6109,8 @@ function is_adjacent_to_city_farc_control(s) {
}
function can_sabotage_phase() {
+ if (count_terror_and_sabotage() >= 40)
+ return false
for (let s = first_loc; s <= last_loc; ++s)
if (can_sabotage_phase_space(s))
return true