From b5a56ff5ea536512ed9e34c3d9399327ad511698 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 29 Dec 2022 21:56:25 +0100 Subject: End taking hits when garrison routs and no lord remains. --- play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index 10185a2..6595975 100644 --- a/play.js +++ b/play.js @@ -1312,7 +1312,7 @@ function update_cards() { ui.events_panel.classList.add("hide") } - if (view.hand.length > 0) { + if (view.hand && view.hand.length > 0) { ui.hand_panel.classList.remove("hide") ui.hand.replaceChildren() if (view.hand) { -- cgit v1.2.3