Fixed so that active effects can be dragged between all sheets

This commit is contained in:
WBHarry 2025-08-18 22:06:10 +02:00
parent bd8cfe0297
commit f1f48c11c9
6 changed files with 44 additions and 11 deletions

View file

@ -195,6 +195,8 @@ export default class DHBaseActorSheet extends DHApplicationMixin(ActorSheetV2) {
};
event.dataTransfer.setData('text/plain', JSON.stringify(attackData));
event.dataTransfer.setDragImage(attackItem.querySelector('img'), 60, 0);
} else if (this.document.type !== 'environment') {
super._onDragStart(event);
}
}
}