From 497a0eebe06b4fdfcbfcd0bac4ea2f3a4f533b30 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Sun, 3 Aug 2025 18:54:12 +0200 Subject: [PATCH] . (#548) --- 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 ||