From 85cf7f85bc8a91cdf2000147810a615620cef0b9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 6 Oct 2023 15:19:50 +0200 Subject: stricteq --- rules.js | 3 +++ 1 file changed, 3 insertions(+) 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) } -- cgit v1.2.3