This commit is contained in:
WBHarry 2025-07-25 02:31:54 +02:00
parent cdfc972301
commit bdc9671d69
6 changed files with 13 additions and 11 deletions

View file

@ -47,7 +47,7 @@ export default class RegisterHandlebarsHelpers {
static rollParsed(value, actor, item, numerical) {
const isNumerical = typeof numerical === 'boolean' ? numerical : false;
const result = itemAbleRollParse(value, actor, item);
return isNumerical && !result ? 0 : result;
const result = itemAbleRollParse(value, actor.getRollData(), item);
return isNumerical ? (!result ? 0 : Number(result)) : result;
}
}