mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
[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:
parent
0632a8c6bb
commit
a71848cecb
9 changed files with 19 additions and 23 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue