Last fixes from tests
This commit is contained in:
@@ -91,8 +91,8 @@ export default class HellbornRoll extends Roll {
|
||||
case "damage":
|
||||
{
|
||||
let formula = options.rollItem.system.damage
|
||||
if (options.rollItem.system.damageStat !== "none") {
|
||||
let statKey = options.rollItem.system.damageStat.toLowerCase()
|
||||
if (options.rollItem?.system?.damageStat && options.rollItem.system.damageStat !== "none" && options.rollItem.system.damageStat !== "") {
|
||||
let statKey = options.rollItem.system?.damageStat.toLowerCase()
|
||||
let statValue = actor.system.stats[statKey].value
|
||||
formula = `${formula} + ${statValue}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user