Display effects in main sheet (left) and manage it for defense and damages

This commit is contained in:
2022-11-25 08:49:37 +01:00
parent add6893864
commit 5e7dc3ad9d
6 changed files with 59 additions and 24 deletions

View File

@ -645,16 +645,8 @@ export class BoLDefaultRoll {
/* -------------------------------------------- */
getDamageAttributeValue(attrDamage, actorId = undefined) {
let attrDamageValue = 0
let actor = game.actors.get( (actorId) ? actorId: this.rollData.actorId)
if (attrDamage.includes("vigor")) {
attrDamageValue = actor.system.attributes.vigor.value
if (attrDamage.includes("half")) {
attrDamageValue = Math.floor(attrDamageValue / 2)
}
}
return attrDamageValue
return actor.getDamageAttributeValue( attrDamage )
}
/* -------------------------------------------- */