xfgjfdt
This commit is contained in:
parent
6ad1149e65
commit
4b10b28588
@ -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');
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user