summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-25 13:14:16 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-25 13:14:16 +0100
commita8874fde796f8fa563a8a80aa429f3a7c40eec44 (patch)
treee37331f91de4a6d43a0236afa121e2d38435d702 /play.js
parent7b2084f413b19f3d2bcea32261d29a766ff49b70 (diff)
download1989-dawn-of-freedom-a8874fde796f8fa563a8a80aa429f3a7c40eec44.tar.gz
Added power_card action
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/play.js b/play.js
index f0f4390..5ccf136 100644
--- a/play.js
+++ b/play.js
@@ -206,6 +206,11 @@ function on_click_card(evt) {
evt.stopPropagation();
}
}
+ if (is_action('power_card', card)) {
+ if (send_action('power_card', card)) {
+ evt.stopPropagation();
+ }
+ }
}
}