summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-22 23:35:43 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commitf6a9413d5b67871c115bbf2add9764c6a274744e (patch)
tree8ecdc3119eebed595433bf7f7f7a5d958e4625bd /rules.js
parent0d0f0897adf3de5fc83b4d30099528b29a7bdad5 (diff)
downloadandean-abyss-f6a9413d5b67871c115bbf2add9764c6a274744e.tar.gz
Require at least 1 guerrilla to sabotage LoC (even with shaded 7th SF).
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 74757f6..4c044e2 100644
--- a/rules.js
+++ b/rules.js
@@ -5735,9 +5735,13 @@ function can_sabotage_phase_space(s) {
if (!has_sabotage(s)) {
if (is_adjacent_to_city_farc_control(s))
return true
- if (has_capability(S_CAP_7TH_SF))
- return count_guerrillas(s) >= count_cubes(s)
- return count_guerrillas(s) > count_cubes(s)
+ let g = count_guerrillas(s)
+ if (g > 0) {
+ let c = count_cubes(s)
+ if (has_capability(S_CAP_7TH_SF))
+ return g >= c
+ return g > c
+ }
}
return false
}