summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/play.js b/play.js
index 6bd7e4d..492df32 100644
--- a/play.js
+++ b/play.js
@@ -111,6 +111,7 @@ function create_formation_slot(id, top) {
let card = data.cards[id]
let e = create_div("slot " + wing_name[card.wing])
+ e.dataset.card = card.number
register_animation(e, 250)
@@ -119,9 +120,9 @@ function create_formation_slot(id, top) {
e.appendChild(ui.cards[id])
}
- if (card.special)
+ if (card.special || card.name === "The Fog")
ui.slot_cubes[id] = append_div(e, "slot_cubes")
- else
+ if (!card.special)
ui.slot_sticks[id] = append_div(e, "slot_sticks")
if (!top) {