diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-18 17:16:38 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-18 17:16:38 +0200 |
commit | 18ea77e0ddb927e548e2d0b087d694b5e00dcccd (patch) | |
tree | bd3b9720cc8f523d0bb57e414cb700a55027c721 /play.js | |
parent | 64a3e8cb166f260aa27dd61a318672a313c9f3f0 (diff) | |
download | plantagenet-18ea77e0ddb927e548e2d0b087d694b5e00dcccd.tar.gz |
Update play.js for to make view.battle optional.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |