From fab5a0ec52ffeea2dd03e1bc9a1ef9ab2dfa40fa Mon Sep 17 00:00:00 2001 From: Troy Nordine Date: Thu, 28 Sep 2023 15:15:26 -0500 Subject: Cleaned up some issues. --- play.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'play.js') 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") -- cgit v1.2.3