summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTroy Nordine <tdnordine@gmail.com>2023-09-28 15:15:26 -0500
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commitfab5a0ec52ffeea2dd03e1bc9a1ef9ab2dfa40fa (patch)
treee212bd5c94b7d13a94cb499c74d7e219aa27127d /play.js
parent11fc065ac09d0b57027ffec56a6ac0e90ca9a3a8 (diff)
downloadplantagenet-fab5a0ec52ffeea2dd03e1bc9a1ef9ab2dfa40fa.tar.gz
Cleaned up some issues.
Diffstat (limited to 'play.js')
-rw-r--r--play.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/play.js b/play.js
index a310535..06c7e52 100644
--- a/play.js
+++ b/play.js
@@ -455,10 +455,10 @@ function is_lord_command(ix) {
}
function is_lord_selected(ix) {
- if (view.who >= 0)
- return ix === view.who
if (view.group)
return view.group.includes(ix)
+ if (view.who >= 0)
+ return ix === view.who
return false
}
@@ -1191,7 +1191,7 @@ function update_lord(ix) {
if (t > 16) t = 16
calendar_layout_cylinder[t].push(ui.lord_cylinder[ix])
ui.lord_cylinder[ix].classList.remove("hide")
- ui.lord_cylinder[ix].getElementByClassName("exile")[0].classList.toggle("hide", is_lord_in_exile(ix))
+ ui.lord_cylinder[ix].getElementsByClassName("exile")[0].classList.toggle("hide", !is_lord_in_exile(ix))
}
ui.lord_buttons[ix].classList.toggle("action", is_action("lord", ix))
ui.lord_cylinder[ix].classList.toggle("action", is_action("lord", ix))
@@ -1599,6 +1599,7 @@ function on_update() {
action_button("play", "Play")
action_button("approach", "Approach")
+ action_button("intercept", "Intercept")
action_button("concede", "Concede")
action_button("battle", "Battle")