Advantage!

This commit is contained in:
2022-05-10 23:04:04 +02:00
parent 33da01707d
commit 34c7024191
4 changed files with 17 additions and 16 deletions

View File

@ -555,9 +555,10 @@ export class BoLDefaultRoll {
}
/* -------------------------------------------- */
getDamageAttributeValue(attrDamage) {
getDamageAttributeValue(attrDamage, actorId = undefined) {
let attrDamageValue = 0
let actor = game.actors.get( this.rollData.actorId)
let actor = game.actors.get( (actorId) ? actorId: this.rollData.actorId)
if (attrDamage.includes("vigor")) {
attrDamageValue = actor.data.data.attributes.vigor.value
if (attrDamage.includes("half")) {