From 9f9cf76373221153f0a91332ca9d4f4426418f32 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 12 Nov 2023 16:34:38 +0100 Subject: Fix can_air_strike check. --- rules.js | 5 +++-- 1 file 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 } -- cgit v1.2.3