summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/play.js b/play.js
index 791026e..c1e4111 100644
--- a/play.js
+++ b/play.js
@@ -225,6 +225,7 @@ function hide_popup_menu() {
document.getElementById("popup").style.display = "none"
document.getElementById("popup_ceh_check").style.display = "none"
document.getElementById("popup_opp_event").style.display = "none"
+ document.getElementById("popup_tst_8").style.display = "none"
}
@@ -268,8 +269,14 @@ function on_click_card(evt) {
if (send_action('card', card)) {
evt.stopPropagation();
}
- //Check for Common European Home
- } else if (is_card_action('card_ceh', card)) {
+ }
+ //First check for TST special power
+ else if (is_card_action('card_tst_8', card)) {
+ show_popup_menu(evt, "popup_tst_8", card, cards[card].name)
+ }
+
+ //Check for Common European Home
+ else if (is_card_action('card_ceh', card)) {
show_popup_menu(evt, "popup_ceh_check", card, cards[card].name)
} else if (is_card_action('card_opp_event', card)) {
console.log('in action card_opp_event')