Skill Fix - 0.3.2

Fixed added stat from skill rolls.
This commit is contained in:
Martin Jencka
2022-09-19 21:02:04 -06:00
parent 103053daa5
commit 62659d1f20
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -372,6 +372,11 @@ export class MothershipActor extends Actor {
const diceData = this.formatDice(r);
let mod = 0;
if(item.type == "skill"){
mod += item.system.bonus;
}
if (attribute.mod > 0) mod += attribute.mod;
console.log("Bonus: " + mod);
let targetValue = attribute.value + mod + (item == "" ? 0 : parseInt(bonus));