Fixed so that actionFields correctly grab a uuid for actions that are directly on an actor

This commit is contained in:
WBHarry 2026-02-01 18:31:40 +01:00
parent 668dbdf8f4
commit 83f0944a20
2 changed files with 8 additions and 2 deletions

View file

@ -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}`;
}

View file

@ -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",