diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-10 13:11:47 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-10 13:11:47 +0100 |
commit | e43c00ffe5a00483da67898fb8abcf87cce5d419 (patch) | |
tree | b5109b04e9cc93acca2d2872b957accbbe995e5a /play.js | |
parent | 89c9aa28c304a17b3a9478bd426031e17303b6a6 (diff) | |
download | 1989-dawn-of-freedom-e43c00ffe5a00483da67898fb8abcf87cce5d419.tar.gz |
New logic for handling TST 7
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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)
}
|