This commit is contained in:
WBHarry 2026-04-21 20:19:39 +02:00
parent 6d355e342e
commit 2ef07b5d84
5 changed files with 7 additions and 7 deletions

View file

@ -25,7 +25,7 @@ export default class DHAbilityUse extends foundry.abstract.TypeDataModel {
if (!actionActor || !this.source.item) return null;
const item = actionActor.items.get(this.source.item);
return item ? item.system.actionsList?.find(a => a.id === this.source.action) : null;
return item ? item.system.actions?.find(a => a.id === this.source.action) : null;
}
get action() {

View file

@ -84,7 +84,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
];
default:
const item = actionActor.items.get(this.source.item);
return item ? item.system.actionsList?.find(a => a.id === this.source.action) : null;
return item ? item.system.actions?.find(a => a.id === this.source.action) : null;
}
}