Fixed so effects supposed to use item data use the model directly, since items have no rolldata

This commit is contained in:
WBHarry 2025-08-13 00:31:52 +02:00
parent 2e301f1bb9
commit c6163d1e04

View file

@ -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 '';
}