summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-20 19:36:55 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-20 19:37:20 +0200
commit2967a744b99f5679ab8de672e1e566cc6641ec14 (patch)
tree076bf20d1a2df3806142bae174b863a85f998560 /play.js
parent3fff02dced1e5ad94061db62ceca1deb7f678059 (diff)
downloadplantagenet-2967a744b99f5679ab8de672e1e566cc6641ec14.tar.gz
Fix Aragne end event (and show selected vassals).
Diffstat (limited to 'play.js')
-rw-r--r--play.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/play.js b/play.js
index f9340a9..705b9d5 100644
--- a/play.js
+++ b/play.js
@@ -1084,6 +1084,12 @@ function add_vassal(parent, vassal, lord, routed) {
force_action_name[VASSAL],
vassal
)
+ else if (view.vassal === vassal || set_has(view.vassal, vassal))
+ elt = get_cached_element(
+ "unit " + force_class_name[VASSAL] + " selected vassal_" + clean_name(data.vassals[vassal].name),
+ force_action_name[VASSAL],
+ vassal
+ )
else
elt = get_cached_element(
"unit " + force_class_name[VASSAL] + " vassal_" + clean_name(data.vassals[vassal].name),