diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-06 15:19:50 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 85cf7f85bc8a91cdf2000147810a615620cef0b9 (patch) | |
tree | 287dd3cded8f02bbd2700100c976057eb8f88d7a | |
parent | a5da4e1449a35afdb8cb1e77325bbac61caac3ba (diff) | |
download | plantagenet-85cf7f85bc8a91cdf2000147810a615620cef0b9.tar.gz |
stricteq
-rw-r--r-- | rules.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) } |