mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Update module/data/fields/actionField.mjs
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
parent
b86d37d3bd
commit
3bcf7d016e
1 changed files with 3 additions and 8 deletions
|
|
@ -152,14 +152,9 @@ export function ActionMixin(Base) {
|
|||
}
|
||||
|
||||
get uuid() {
|
||||
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}`;
|
||||
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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue