diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-11-12 16:34:38 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-11-12 16:34:38 +0100 |
commit | 9f9cf76373221153f0a91332ca9d4f4426418f32 (patch) | |
tree | 86d51611e0151924bab8fa21388436ecf6caa0ec | |
parent | ba97ee88d34d387f9c0818fd4eee82fbcfb343fa (diff) | |
download | andean-abyss-9f9cf76373221153f0a91332ca9d4f4426418f32.tar.gz |
Fix can_air_strike check.
-rw-r--r-- | rules.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 } |