From f6a9413d5b67871c115bbf2add9764c6a274744e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 22 Apr 2023 23:35:43 +0200 Subject: Require at least 1 guerrilla to sabotage LoC (even with shaded 7th SF). --- rules.js | 10 +++++++--- 1 file 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 } -- cgit v1.2.3