summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-19 21:50:38 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:17 +0100
commita61433b1a2b11055b9a3a75d0ce04499be13986d (patch)
tree5225c07c960611a2917028bdcaddf44a548179ce /ui.js
parent3ba5a1c8ff5b53547131aab9ae23363642ac4617 (diff)
downloadhammer-of-the-scots-a61433b1a2b11055b9a3a75d0ce04499be13986d.tar.gz
Small fixes to block games.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 75d97a4..506869f 100644
--- a/ui.js
+++ b/ui.js
@@ -101,7 +101,8 @@ function on_blur_map_block(evt) {
function on_click_map_block(evt) {
let b = evt.target.block;
- send_action('block', b);
+ if (!game.battle)
+ send_action('block', b);
}
function is_battle_reserve(who, list) {