This commit is contained in:
WBHarry 2025-08-03 18:51:03 +02:00
parent 3d318d64ee
commit 7bbe88582e

View file

@ -78,7 +78,7 @@ export class DHActionRollData extends foundry.abstract.DataModel {
: null; : null;
const trait = const trait =
this.useDefault || !this.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; : this.trait;
if ( if (
this.type === CONFIG.DH.GENERAL.rollTypes.attack.id || this.type === CONFIG.DH.GENERAL.rollTypes.attack.id ||