From 31c70469efc8797a67cf30fbc8cba93150e22d09 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Mon, 2 Feb 2026 00:57:17 +0100 Subject: [PATCH] [Fix] ActionField UUID for Actor Actions (#1622) * Fixed so that actionFields correctly grab a uuid for actions that are directly on an actor * Corrected to logical or * Update module/data/fields/actionField.mjs Co-authored-by: Carlos Fernandez --------- Co-authored-by: Carlos Fernandez --- module/data/fields/actionField.mjs | 5 +++-- system.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index 9c006beb..4cadeac4 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -152,8 +152,9 @@ export function ActionMixin(Base) { } get uuid() { - if (!(this.item instanceof game.system.api.documents.DHItem)) return null; - return `${this.item.uuid}.${this.documentName}.${this.id}`; + const isItem = this.item instanceof game.system.api.documents.DHItem; + const isActor = this.item instanceof game.system.api.documents.DhpActor; + return isItem || isActor ? `${this.item.uuid}.${this.documentName}.${this.id}` : null; } get sheet() { 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",