This commit is contained in:
cay 2026-04-14 12:01:05 +01:00
parent 6ad1149e65
commit 4b10b28588

View File

@ -690,10 +690,8 @@ let draggedBoardSlotId = null;
function enableBoardDrag() {
document.querySelectorAll('.card-slot').forEach(slot => {
const idx = Number(slot.dataset.slotIndex);
if (!isMyZone(idx)) return;
if (!boardState[slot.id]) return;
if (boardState[slot.id].owner !== mySlot) return;
// Nur eigene Karten sind abwerfbar egal auf welchem Slot sie stehen
if (boardState[slot.id]?.owner !== mySlot) return;
slot.classList.add('board-slot-draggable');
slot.setAttribute('draggable', 'true');
});