mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03: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;
|
||||
|
||||
try {
|
||||
return Roll.replaceFormulaData(slicedValue, model?.getRollData?.() ?? model);
|
||||
return Roll.replaceFormulaData(slicedValue, isItemTarget || !model?.getRollData ? model : model.getRollData());
|
||||
} catch (_) {
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue