This commit is contained in:
WBHarry 2025-08-03 18:54:12 +02:00 committed by GitHub
parent c46d676cc3
commit 497a0eebe0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 ||