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

This commit is contained in:
WBHarry 2025-08-13 00:55:10 +02:00 committed by GitHub
parent 2e301f1bb9
commit 9f545477ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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