summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-18 17:16:38 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-18 17:16:38 +0200
commit18ea77e0ddb927e548e2d0b087d694b5e00dcccd (patch)
treebd3b9720cc8f523d0bb57e414cb700a55027c721 /play.js
parent64a3e8cb166f260aa27dd61a318672a313c9f3f0 (diff)
downloadplantagenet-18ea77e0ddb927e548e2d0b087d694b5e00dcccd.tar.gz
Update play.js for to make view.battle optional.
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index 696722a..a17b770 100644
--- a/play.js
+++ b/play.js
@@ -1215,7 +1215,7 @@ function update_lord_mat(ix) {
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_fled[ix].classList.toggle("hide", view.battle === 0 || !set_has(view.battle.fled, ix))
+ ui.lord_fled[ix].classList.toggle("hide", view.battle === undefined || !set_has(view.battle.fled, ix))
update_valour(ix, ui.lord_valour[ix], view.battle)
}