summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-24 12:05:30 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-24 12:05:30 +0200
commit84ced446d2b04f72348e30774f440d3d9b7108bb (patch)
tree0812cfb14c37bb7a0797427414a34e292dd94042
parentb6ab446d55ee6bf4006f234226faf92a34371502 (diff)
downloadnevsky-84ced446d2b04f72348e30774f440d3d9b7108bb.tar.gz
Deselect lords that disband.
For example via the Heinrich event.
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index f1d12aa..d2a3fc2 100644
--- a/rules.js
+++ b/rules.js
@@ -10373,6 +10373,9 @@ function disband_lord(lord, permanently = false) {
remove_lieutenant(lord)
+ if (game.group)
+ set_delete(game.group, lord)
+
// Smerdi - serfs go back to card
game.pieces.smerdi += get_lord_forces(lord, SERFS)