This commit is contained in:
WBHarry 2025-08-03 18:52:26 +02:00
parent c46d676cc3
commit fe770e0ccc

View file

@ -78,7 +78,7 @@ export class DHActionRollData extends foundry.abstract.DataModel {
: null;
const trait =
this.useDefault || !this.trait
? (spellcastingTrait ?? this.parent.item.system.attack.roll.trait ?? 'agility')
? (spellcastingTrait ?? this.parent.item.system.attack?.roll?.trait ?? 'agility')
: this.trait;
if (
this.type === CONFIG.DH.GENERAL.rollTypes.attack.id ||