Fix Killing damage information

This commit is contained in:
2023-08-27 16:21:10 +02:00
parent 1d4d3054c3
commit 94065a3755
44 changed files with 140 additions and 128 deletions

View File

@@ -721,7 +721,7 @@ export class Hero6Actor extends Actor {
if (item.system.damageeffect == "killing") { // As per issue #11
mult = new Roll("1d3").roll({ async: false })
rollData.killingMultiplier = mult.total
rollData.stunValue = (Number(myRoll.total) * Number(mult.total)) + (Number(item.system.stunx) || 0)
rollData.stunValue = Number(myRoll.total) * (Number(mult.total) + (Number(item.system.stunx) || 0))
} else {
rollData.stunValue = myRoll.total
}