summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-17 12:08:53 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commitd7d82e5807dca189d58cea708281d154c5a435f0 (patch)
tree1bafa14c27c67d98ad24aa541e263549033cd222
parent1db9608960fb9cf85959948baa677a1262942855 (diff)
downloadnevsky-d7d82e5807dca189d58cea708281d154c5a435f0.tar.gz
Fix conquering castles.
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 13ceba4..e60f64f 100644
--- a/rules.js
+++ b/rules.js
@@ -8204,6 +8204,9 @@ function goto_sack() {
log(`Sacked %${here}.`)
+ if (has_friendly_castle(here))
+ flip_castle(here)
+
remove_all_siege_markers(game.battle.where)
add_conquered_marker(game.battle.where)
remove_walls(game.battle.where)