mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 22:46:12 +01:00
Fixed so that actionFields correctly grab a uuid for actions that are directly on an actor
This commit is contained in:
parent
668dbdf8f4
commit
83f0944a20
2 changed files with 8 additions and 2 deletions
|
|
@ -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}`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue