From 6405fcf0264c1f2abe416b13f8b67472afdcbcbe Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 12 May 2023 16:04:29 +0200 Subject: Don't allow raiding enemy Forts and Fortresses! --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 48e113a..e08be06 100644 --- a/rules.js +++ b/rules.js @@ -1600,9 +1600,9 @@ function force_has_only_auxiliary_units(who) { } function is_raid_space(s) { - if (has_friendly_fort(s)) + if (has_friendly_fort(s) || has_enemy_fort(s)) return false - if (has_friendly_fortress(s)) + if (has_friendly_fortress(s) || has_enemy_fortress(s)) return false if (has_friendly_stockade(s)) return false -- cgit v1.2.3