summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/play.js b/play.js
index 25ca516..f2b723a 100644
--- a/play.js
+++ b/play.js
@@ -1354,8 +1354,10 @@ function on_update() {
for (let tribe = 0; tribe < 5; ++tribe) {
for (let id = first_barbarian[tribe]; id <= last_barbarian[tribe]; ++id) {
let loc = get_barbarian_location(id)
- if (loc === army)
+ if (loc === army) {
+ ui.barbarians[id].classList.toggle("inactive", false)
stack.push(ui.barbarians[id])
+ }
}
}