[Fix] Random Fixes (#405)

* Fixed so minimum damage taken is 1, 0 was in playtest rules. Fixed so useDowntime isn't triggered on clicking enter

* .

* .
This commit is contained in:
WBHarry 2025-07-25 15:56:09 +02:00 committed by GitHub
parent 0632a8c6bb
commit a71848cecb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 19 additions and 23 deletions

View file

@ -48,8 +48,8 @@ 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;
}
static setVar(name, value, context) {