summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-12 16:04:29 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-12 16:04:29 +0200
commit6405fcf0264c1f2abe416b13f8b67472afdcbcbe (patch)
tree8b165c66384d4a6e3116b1a15657dd29344c86ea
parent5c5dc6458d6e736c233af88628d06f60350bfbd0 (diff)
downloadwilderness-war-6405fcf0264c1f2abe416b13f8b67472afdcbcbe.tar.gz
Don't allow raiding enemy Forts and Fortresses!
-rw-r--r--rules.js4
1 files 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