summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-17 12:09:10 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commit1db63047577a9711210155a56bccaeb06d8ec9b0 (patch)
tree51f27546b3a8a25a72ec29329c7bbf7f963077d7
parentd7d82e5807dca189d58cea708281d154c5a435f0 (diff)
downloadnevsky-1db63047577a9711210155a56bccaeb06d8ec9b0.tar.gz
Fix conquering strongholds in friendly territory.
-rw-r--r--rules.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index e60f64f..f2b8866 100644
--- a/rules.js
+++ b/rules.js
@@ -8208,7 +8208,10 @@ function goto_sack() {
flip_castle(here)
remove_all_siege_markers(game.battle.where)
- add_conquered_marker(game.battle.where)
+ if (is_friendly_territory(game.battle.where))
+ add_conquered_marker(game.battle.where)
+ else
+ remove_conquered_marker(game.battle.where)
remove_walls(game.battle.where)
if (here === LOC_NOVGOROD) {