From fe770e0ccc4e60b99625b13eb28fcce4a64ca5ea Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sun, 3 Aug 2025 18:52:26 +0200 Subject: [PATCH] . --- module/data/fields/action/rollField.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/data/fields/action/rollField.mjs b/module/data/fields/action/rollField.mjs index 9ba57154..86681265 100644 --- a/module/data/fields/action/rollField.mjs +++ b/module/data/fields/action/rollField.mjs @@ -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 ||