From c6163d1e04acf5dca0559bb6675441207423f51b Mon Sep 17 00:00:00 2001 From: WBHarry Date: Wed, 13 Aug 2025 00:31:52 +0200 Subject: [PATCH] Fixed so effects supposed to use item data use the model directly, since items have no rolldata --- module/helpers/utils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/helpers/utils.mjs b/module/helpers/utils.mjs index 63507782..d3ca52b0 100644 --- a/module/helpers/utils.mjs +++ b/module/helpers/utils.mjs @@ -341,7 +341,7 @@ export const itemAbleRollParse = (value, actor, item) => { const model = isItemTarget ? item : actor; try { - return Roll.replaceFormulaData(slicedValue, model?.getRollData?.() ?? model); + return Roll.replaceFormulaData(slicedValue, isItemTarget || !model?.getRollData ? model : model.getRollData()); } catch (_) { return ''; }