From 3023c283256516d71df60febdb18065fb440b21b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 5 May 2024 18:05:54 +0200 Subject: Hide moved/fought markers in battle. --- play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play.js b/play.js index bc75399..588d1b9 100644 --- a/play.js +++ b/play.js @@ -1075,8 +1075,8 @@ function update_lord_mat(ix) { ui.marker_area[ix].appendChild(ui.captured_king) } let m = get_lord_moved(ix) - ui.lord_moved1[ix].classList.toggle("hide", is_levy_phase() || (m !== 1 && m !== 2)) - ui.lord_moved2[ix].classList.toggle("hide", is_levy_phase() || (m !== 2)) + ui.lord_moved1[ix].classList.toggle("hide", is_levy_phase() || !!view.battle || (m !== 1 && m !== 2)) + ui.lord_moved2[ix].classList.toggle("hide", is_levy_phase() || !!view.battle || (m !== 2)) update_valour(ix, ui.valour_area[ix], view.battle) } -- cgit v1.2.3