summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-12 16:34:38 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-12 16:34:38 +0100
commit9f9cf76373221153f0a91332ca9d4f4426418f32 (patch)
tree86d51611e0151924bab8fa21388436ecf6caa0ec
parentba97ee88d34d387f9c0818fd4eee82fbcfb343fa (diff)
downloadandean-abyss-9f9cf76373221153f0a91332ca9d4f4426418f32.tar.gz
Fix can_air_strike check.
-rw-r--r--rules.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 2c31a39..f968639 100644
--- a/rules.js
+++ b/rules.js
@@ -4940,8 +4940,9 @@ function can_air_strike() {
return false
let manpad = has_momentum(MOM_MISIL_ANTIAEREO)
for (let s = first_space; s <= last_space; ++s)
- if (can_air_strike_in_space(manpad, s))
- return true
+ if (is_loc(s) || is_dept(s))
+ if (can_air_strike_in_space(manpad, s))
+ return true
return false
}