summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-04 13:05:55 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit6c12573074cc3eae1ac85d9be342f660aec4d19f (patch)
tree451cba1e18eae146fec6b46a529dd5ceb09779be
parent61449071c173884cdefd5ec765ed88c6535f6176 (diff)
downloadnevsky-6c12573074cc3eae1ac85d9be342f660aec4d19f.tar.gz
Fix Summer Crusaders disbanding leaving lord with no forces.
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index ec0277f..8d9e79f 100644
--- a/rules.js
+++ b/rules.js
@@ -1532,6 +1532,9 @@ function disband_vassal(vassal) {
add_lord_forces(lord, SERFS, -(info.forces.serfs | 0))
game.pieces.vassals[vassal] = VASSAL_READY
+
+ if (!lord_has_unrouted_units(lord))
+ disband_lord(lord)
}
function muster_vassal(lord, vassal) {