diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2023-06-03 02:43:18 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:13:09 +0100 |
commit | 5b97cd1e2e1c7ce17b98873ac77af6406744157f (patch) | |
tree | c4cb50702f7229348a5f34f81d201f804afb30d2 | |
parent | 6bf4ea57f34a87729ef8071058c09d0c2d849b65 (diff) | |
download | plantagenet-5b97cd1e2e1c7ce17b98873ac77af6406744157f.tar.gz |
fix lord court bug
lords array was not up to date
-rw-r--r-- | play.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1247,10 +1247,10 @@ function update_court() { let rcourt = (player === "Lancaster") ? ui.court1 : ui.court2 tcourt.replaceChildren() rcourt.replaceChildren() - for (let lord = 0; lord < 6; ++lord) + for (let lord = 14; lord < 27; ++lord) if (!is_lord_in_battle(lord) && is_lord_on_map(lord)) tcourt.appendChild(ui.lord_mat[lord]) - for (let lord = 6; lord < 12; ++lord) + for (let lord = 0; lord < 14; ++lord) if (!is_lord_in_battle(lord) && is_lord_on_map(lord)) rcourt.appendChild(ui.lord_mat[lord]) } |