summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-09 17:28:44 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:47 +0100
commit005a221f87a6b1a24ee9ea38c2e57798401146fe (patch)
tree51dcbd17cee726f5a22d277653fc4a74c29e8153 /play.js
parent3787128803368f761acdd49303a9bc961e29d979 (diff)
downloadtable-battles-005a221f87a6b1a24ee9ea38c2e57798401146fe.tar.gz
Inkerman & The Fog.
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) {