This commit is contained in:
cay 2026-04-13 10:21:13 +01:00
parent 0750b4548a
commit b52367312e

View File

@ -427,8 +427,16 @@
const state = handSlotState[id]; const state = handSlotState[id];
if (!slot) return; if (!slot) return;
/* KOMPLETT RESET */
slot.innerHTML = "";
slot.style.backgroundImage = "none";
slot.style.opacity = "1";
slot.style.filter = "none";
slot.style.backgroundColor = "#0a0805";
slot.classList.remove("hand-slot-ready", "hand-slot--filled");
if (!state) { if (!state) {
slot.style.backgroundImage = ''; slot.style.backgroundImage = "";
slot.innerHTML = '<span class="hs-icon">🃏</span>'; slot.innerHTML = '<span class="hs-icon">🃏</span>';
slot.classList.remove("hand-slot-ready", "hand-slot--filled"); slot.classList.remove("hand-slot-ready", "hand-slot--filled");
slot.draggable = false; slot.draggable = false;
@ -466,9 +474,9 @@
// Kein <img>-Element → keine Flex-Höhen-Probleme, kein z-index-Konflikt. // Kein <img>-Element → keine Flex-Höhen-Probleme, kein z-index-Konflikt.
// background-color (#0a0805) deckt transparente PNG-Bereiche solid ab. // background-color (#0a0805) deckt transparente PNG-Bereiche solid ab.
if (card.image) { if (card.image) {
slot.style.backgroundImage = 'none'; slot.style.backgroundImage = "none";
} else { } else {
slot.style.backgroundImage = 'none'; slot.style.backgroundImage = "none";
} }
slot.innerHTML = card.image slot.innerHTML = card.image