Enhancements as per issue tracking sheet

This commit is contained in:
2026-03-19 15:39:25 +01:00
parent b2befe039e
commit b67d85c6be
22 changed files with 588 additions and 55 deletions

View File

@@ -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") {