Nouvelles corrections sur la fiche

This commit is contained in:
2026-03-06 11:10:48 +01:00
parent badfea1166
commit 65dc626380
8 changed files with 96 additions and 22 deletions
@@ -146,6 +146,15 @@ export default class AwEActorSheet extends HandlebarsApplicationMixin(foundry.ap
*/
_onDragStart(event) {
if ("link" in event.target.dataset) return
const el = event.currentTarget
const itemId = el.dataset.itemId
const itemUuid = el.dataset.itemUuid
if (!itemUuid && !itemId) return
const item = itemUuid
? fromUuidSync(itemUuid)
: this.document.items.get(itemId)
if (!item) return
event.dataTransfer.setData("text/plain", JSON.stringify({ type: "Item", uuid: item.uuid }))
}
/**