summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 7e043e1..2198c7b 100644
--- a/ui.js
+++ b/ui.js
@@ -746,7 +746,12 @@ function select_undo() { send_action('undo'); }
function select_battle_hit(evt) { send_action('battle_hit', evt.target.block); }
function select_battle_fire(evt) { send_action('battle_fire', evt.target.block); }
function select_battle_retreat(evt) { send_action('battle_retreat', evt.target.block); }
-function select_battle_pass(evt) { send_action('battle_pass', evt.target.block); }
+
+function select_battle_pass(evt) {
+ if (window.confirm("Are you sure that you want to PASS with " + block_name(evt.target.block) + "?"))
+ send_action('battle_pass', evt.target.block);
+}
+
build_map();