summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 9c83c2e..5dc0c97 100644
--- a/ui.js
+++ b/ui.js
@@ -219,10 +219,14 @@ function on_blur_battle_button(evt) {
function on_click_battle_hit(evt) { send_action('battle_hit', evt.target.block); }
function on_click_battle_fire(evt) { send_action('battle_fire', evt.target.block); }
function on_click_battle_retreat(evt) { send_action('battle_retreat', evt.target.block); }
-function on_click_battle_pass(evt) { send_action('battle_pass', evt.target.block); }
function on_click_battle_charge(evt) { send_action('battle_charge', evt.target.block); }
function on_click_battle_treachery(evt) { send_action('battle_treachery', evt.target.block); }
+function on_click_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);
+}
+
function on_click_card(evt) {
let c = evt.target.id.split("+")[1] | 0;
send_action('play', c);