chrisk123999 / chris-premades

MIT License
42 stars 47 forks source link

Paladin: Sacred Weapon bug #228

Closed tposney closed 4 months ago

tposney commented 4 months ago

There seems to be a bug in sacred weapon if the weapon has not default bonus, I think it can be fixed via (at least worked in my test) in the function sacredWeapon_item:

    let attackBonus = Math.max(1, workflow.actor.system.abilities.cha.mod);
    if (![undefined, null, ""].includes(selection.system.attackBonus)) {
        attackBonus = selection.system.attackBonus + ' + ' + attackBonus;
    }

Since the bonus can be undefined rather than just "" - not sure if that's a dnd5e 3.x thing or not.