From 91fb32ae4dab552c39b561465659e739a7d5e9de Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 6 Jan 2023 13:40:00 +0100 Subject: Fix lift siege typo. --- play.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index 64fa4cb..b4b8fb0 100644 --- a/play.js +++ b/play.js @@ -194,7 +194,11 @@ function pack4_get(word, n) { } function is_lord_besieged(lord) { - return pack1_get(view.pieces.besieged, lord) + let besieged = pack1_get(view.pieces.besieged, lord) + // show sallying lords as not besieged + if (view.battle && view.battle.reserves.includes(lord)) + return false + return besieged } function is_lord_moved(lord) { -- cgit v1.2.3