mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Fixes
This commit is contained in:
parent
02d82c32be
commit
c59f28ecb5
449 changed files with 626 additions and 18210 deletions
|
|
@ -77,10 +77,13 @@ export default class ClassSheet extends DHBaseItemSheet {
|
|||
'inventory.choiceB'
|
||||
];
|
||||
|
||||
paths.forEach(path => {
|
||||
for (let path of paths) {
|
||||
const docs = [].concat(foundry.utils.getProperty(this.document, `system.${path}`) ?? []);
|
||||
docs.forEach(doc => (doc.apps[this.id] = this));
|
||||
});
|
||||
for (let d of docs) {
|
||||
const doc = d.system ? d : await foundry.utils.fromUuid(d.uuid);
|
||||
doc.apps[this.id] = this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**@inheritdoc */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue