From 005a221f87a6b1a24ee9ea38c2e57798401146fe Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 9 Dec 2023 17:28:44 +0100 Subject: Inkerman & The Fog. --- play.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'play.js') 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) { -- cgit v1.2.3