summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/play.js b/play.js
index 6a78abc..ae7c8eb 100644
--- a/play.js
+++ b/play.js
@@ -286,7 +286,9 @@ function on_focus_us_state(evt) {
function on_click_card(evt) {
let card = evt.target.my_card
- if (is_action('card_select', card)) {
+ if (is_action('card', card)) {
+ send_action('card', card)
+ } else if (is_action('card_select', card)) {
show_popup_menu(evt, "popup_select_card", card, CARDS[card].name)
} else {
show_popup_menu(evt, "popup", card, CARDS[card].name)