summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-10 13:11:47 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-10 13:11:47 +0100
commite43c00ffe5a00483da67898fb8abcf87cce5d419 (patch)
treeb5109b04e9cc93acca2d2872b957accbbe995e5a /play.js
parent89c9aa28c304a17b3a9478bd426031e17303b6a6 (diff)
download1989-dawn-of-freedom-e43c00ffe5a00483da67898fb8abcf87cce5d419.tar.gz
New logic for handling TST 7
Diffstat (limited to 'play.js')
-rw-r--r--play.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/play.js b/play.js
index 44a7d84..2c4d482 100644
--- a/play.js
+++ b/play.js
@@ -225,7 +225,9 @@ 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_7").style.display = "none"
document.getElementById("popup_tst_8").style.display = "none"
+ document.getElementById("popup_tst_7_8").style.display = "none"
}
@@ -268,7 +270,14 @@ function on_click_card(evt) {
evt.stopPropagation();
}
}
- //First check for TST special power
+ //First check for TST special powers
+ else if (is_card_action('card_tst_7', card)) {
+ if (is_card_action('card_tst_8', card)) {
+ show_popup_menu(evt, "popup_tst_7_8", card, cards[card].name)
+ } else {
+ show_popup_menu(evt, "popup_tst_7", card, cards[card].name)
+ }
+ }
else if (is_card_action('card_tst_8', card)) {
show_popup_menu(evt, "popup_tst_8", card, cards[card].name)
}