From 2a2354a6fe7442dffd5539b5218eed9741b67e3c Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Mon, 4 Dec 2023 16:25:57 +0100 Subject: fix card action --- play.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'play.js') 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) -- cgit v1.2.3