diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-20 17:20:28 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-20 17:20:28 +0100 |
commit | 02e68e9059d5302901705dbf0bf8631d996d4f9a (patch) | |
tree | e45b84459a999ced2a3e1f088518e217212ad004 /play.js | |
parent | 6d8ac00db1366e7b0c790e679bc439c8fcac5fed (diff) | |
download | 1989-dawn-of-freedom-02e68e9059d5302901705dbf0bf8631d996d4f9a.tar.gz |
Teisuru comments set 1
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -516,9 +516,15 @@ if (!view.is_pwr_struggle) { document.getElementById("opp_hand_panel").classList.remove("hide")
for (let c of view.opp_hand) {
let card = ui.cards[c]
- //console.log('power_card:', power_card)
document.getElementById("opp_hand").appendChild(card);
card.classList.remove('discard_card')
+ if (!view.is_pwr_struggle) {
+ if (view.valid_cards.includes(c)) {
+ card.classList.add('selected')
+ } else {
+ card.classList.remove('selected')
+ }
+ }
}
} else {
document.getElementById("opp_hand_panel").classList.add("hide")
|