From 83f0944a20e1d79063c1fe6294fe793c4c9e21de Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sun, 1 Feb 2026 18:31:40 +0100 Subject: [PATCH] Fixed so that actionFields correctly grab a uuid for actions that are directly on an actor --- module/data/fields/actionField.mjs | 8 +++++++- system.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index 9c006beb..276f2a16 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -152,7 +152,13 @@ export function ActionMixin(Base) { } get uuid() { - if (!(this.item instanceof game.system.api.documents.DHItem)) return null; + if ( + !( + (this.item instanceof game.system.api.documents.DHItem) | + (this.item instanceof game.system.api.documents.DhpActor) + ) + ) + return null; return `${this.item.uuid}.${this.documentName}.${this.id}`; } diff --git a/system.json b/system.json index 90ebf11d..323cf00d 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "daggerheart", "title": "Daggerheart", "description": "An unofficial implementation of the Daggerheart system", - "version": "1.6.2", + "version": "1.6.3", "compatibility": { "minimum": "13.346", "verified": "13.351",