diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-05 18:05:54 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-05 18:05:54 +0200 |
commit | 3023c283256516d71df60febdb18065fb440b21b (patch) | |
tree | f99e0f1fbb35b5a149bc3f13ee0d1ce2ace80175 | |
parent | 912a5659a97cfafbf03b4e2e6150e50cb4557393 (diff) | |
download | plantagenet-3023c283256516d71df60febdb18065fb440b21b.tar.gz |
Hide moved/fought markers in battle.
-rw-r--r-- | play.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } |