summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-06-03 02:43:18 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:13:09 +0100
commit5b97cd1e2e1c7ce17b98873ac77af6406744157f (patch)
treec4cb50702f7229348a5f34f81d201f804afb30d2
parent6bf4ea57f34a87729ef8071058c09d0c2d849b65 (diff)
downloadplantagenet-5b97cd1e2e1c7ce17b98873ac77af6406744157f.tar.gz
fix lord court bug
lords array was not up to date
-rw-r--r--play.js4
1 files 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])
}