mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 05:31:07 +01:00
Fixed so effects supposed to use item data use the model directly, since items have no rolldata (#883)
This commit is contained in:
parent
2e301f1bb9
commit
9f545477ae
1 changed files with 1 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ export const itemAbleRollParse = (value, actor, item) => {
|
||||||
const model = isItemTarget ? item : actor;
|
const model = isItemTarget ? item : actor;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return Roll.replaceFormulaData(slicedValue, model?.getRollData?.() ?? model);
|
return Roll.replaceFormulaData(slicedValue, isItemTarget || !model?.getRollData ? model : model.getRollData());
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue