From 5b97cd1e2e1c7ce17b98873ac77af6406744157f Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Sat, 3 Jun 2023 02:43:18 +0200 Subject: fix lord court bug lords array was not up to date --- play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play.js b/play.js index 7d84e4a..e83b98e 100644 --- a/play.js +++ b/play.js @@ -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]) } -- cgit v1.2.3