summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/play.js b/play.js
index a87abbb..76edae8 100644
--- a/play.js
+++ b/play.js
@@ -292,7 +292,8 @@ function on_click_unit(evt) {
hide_supply()
evt.stopPropagation()
if (focus_stack(evt.target.stack, evt.target.hex))
- send_action('unit', evt.target.unit)
+ if (!send_action('unit', evt.target.unit))
+ blur_stack()
}
}