xfgjfdt
This commit is contained in:
parent
6ad1149e65
commit
4b10b28588
@ -690,10 +690,8 @@ let draggedBoardSlotId = null;
|
|||||||
|
|
||||||
function enableBoardDrag() {
|
function enableBoardDrag() {
|
||||||
document.querySelectorAll('.card-slot').forEach(slot => {
|
document.querySelectorAll('.card-slot').forEach(slot => {
|
||||||
const idx = Number(slot.dataset.slotIndex);
|
// Nur eigene Karten sind abwerfbar – egal auf welchem Slot sie stehen
|
||||||
if (!isMyZone(idx)) return;
|
if (boardState[slot.id]?.owner !== mySlot) return;
|
||||||
if (!boardState[slot.id]) return;
|
|
||||||
if (boardState[slot.id].owner !== mySlot) return;
|
|
||||||
slot.classList.add('board-slot-draggable');
|
slot.classList.add('board-slot-draggable');
|
||||||
slot.setAttribute('draggable', 'true');
|
slot.setAttribute('draggable', 'true');
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user