summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-06 15:19:50 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit85cf7f85bc8a91cdf2000147810a615620cef0b9 (patch)
tree287dd3cded8f02bbd2700100c976057eb8f88d7a
parenta5da4e1449a35afdb8cb1e77325bbac61caac3ba (diff)
downloadplantagenet-85cf7f85bc8a91cdf2000147810a615620cef0b9.tar.gz
stricteq
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index b1ae977..26e5757 100644
--- a/rules.js
+++ b/rules.js
@@ -769,6 +769,9 @@ function lord_has_routed_units(lord) {
}
function rout_vassal(lord, vassal) {
+ if (game.battle.routed_vassals[lord] === 0)
+ game.battle.routed_vassals[lord] = []
+
set_add(game.battle.routed_vassals[lord], vassal)
}