diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-04-22 23:35:43 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | f6a9413d5b67871c115bbf2add9764c6a274744e (patch) | |
tree | 8ecdc3119eebed595433bf7f7f7a5d958e4625bd /rules.js | |
parent | 0d0f0897adf3de5fc83b4d30099528b29a7bdad5 (diff) | |
download | andean-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.js | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 } |