summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-21 14:54:50 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit1e3995aae8a7a0b613d0813e6d3a940a66c0850d (patch)
treecc5229636ae227e0a7d57b0467411b80b02a6e65 /rules.js
parent8359d4bdc8a432e58431d167db65f072737ab1f7 (diff)
downloadandean-abyss-1e3995aae8a7a0b613d0813e6d3a940a66c0850d.tar.gz
Fix Assault.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 937791d..05be45d 100644
--- a/rules.js
+++ b/rules.js
@@ -3523,18 +3523,18 @@ function vm_free_assault_cartels() {
function can_assault() {
if (game.sa && can_air_lift()) {
for (let s = first_space; s <= last_space; ++s)
- if (has_assault_target(s, FARC) || has_assault_target(s, AUC) || has_assault_target(s, CARTELS))
+ if (has_assault_target(s, 0))
return true
return true
}
for (let s = first_space; s <= last_space; ++s)
- if (can_assault_in_space(s))
+ if (can_assault_in_space(s, 0))
return true
return false
}
function can_assault_in_space(s) {
- return can_assault_in_space_faction(s, FARC) || can_assault_in_space_faction(s, AUC) || can_assault_in_space_faction(s, CARTELS)
+ return can_assault_in_space_faction(s, 0)
}
function can_assault_in_space_faction(s, target) {