summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-05 18:05:54 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-05 18:05:54 +0200
commit3023c283256516d71df60febdb18065fb440b21b (patch)
treef99e0f1fbb35b5a149bc3f13ee0d1ce2ace80175
parent912a5659a97cfafbf03b4e2e6150e50cb4557393 (diff)
downloadplantagenet-3023c283256516d71df60febdb18065fb440b21b.tar.gz
Hide moved/fought markers in battle.
-rw-r--r--play.js4
1 files 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)
}