Merged with main

This commit is contained in:
WBHarry 2025-05-30 16:51:36 +02:00
commit 264a79f6e8
37 changed files with 1359 additions and 1493 deletions

View file

@ -290,7 +290,7 @@ export default class DhpPC extends foundry.abstract.TypeDataModel {
get refreshableFeatures() {
return this.parent.items.reduce(
(acc, x) => {
if (x.type === 'feature' && x.system.refreshData?.type) {
if (x.type === 'feature' && x.system.refreshData?.type === 'feature' && x.system.refreshData?.type) {
acc[x.system.refreshData.type].push(x);
}