Enhancements as per issue tracking sheet
This commit is contained in:
@@ -108,6 +108,9 @@ export default class OathHammerActorSheet extends HandlebarsApplicationMixin(fou
|
||||
_onDragOver(event) {}
|
||||
|
||||
async _onDropItem(item) {
|
||||
// Ignore drops of items already owned by this actor (internal drag = no-op)
|
||||
if (item.parent?.id === this.document.id) return
|
||||
|
||||
const itemData = item.toObject()
|
||||
// Class is unique: replace any existing item of the same type
|
||||
if (item.type === "class") {
|
||||
|
||||
Reference in New Issue
Block a user