This commit is contained in:
WBHarry 2025-08-01 17:46:07 +02:00
parent 02d82c32be
commit c59f28ecb5
449 changed files with 626 additions and 18210 deletions

View file

@ -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 */