summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-04 14:43:11 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit0a29180008b0061481d059249172ef4e020ff3c7 (patch)
treea065df51df80237d7ebae0d8cca2fdd5b801e06f /rules.js
parentceaa1d86746b5b10048f286dc953d5817c3384d7 (diff)
downloadnevsky-0a29180008b0061481d059249172ef4e020ff3c7.tar.gz
Fix end of battle check.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 7c1661b..b0a5157 100644
--- a/rules.js
+++ b/rules.js
@@ -6953,7 +6953,7 @@ function has_no_unrouted_forces() {
if (is_friendly_lord(game.battle.array[p]))
return false
for (let lord of game.battle.reserves)
- if (is_friendly_locale(lord))
+ if (is_friendly_lord(lord))
return false
if (game.battle.storm && game.active !== game.battle.attacker)
if (game.battle.garrison)