Corrections sur encaissement

This commit is contained in:
2023-09-16 09:40:08 +02:00
parent f1a3f2df36
commit ade88fb54b
5 changed files with 35 additions and 33 deletions

View File

@ -491,6 +491,7 @@ export class BoLRoll {
if (defender) { // If target is selected
rollData.defence = defender.defenseValue
rollData.armorMalus = defender.armorMalusValue
rollData.defenderHeroPoints = defender.getHeroPoints()
rollData.shieldBlock = 'none'
let shields = defender.shields
//console.log("Defender stats", defender)
@ -578,7 +579,7 @@ export class BoLRoll {
const isMalus = (rollData.bmDice < 0)
let rollbase = rollData.attrValue + rollData.aptValue
if (rollData.weapon && rollData.weapon.system.properties.onlymodifier) {
if (rollData.weapon?.system.properties.onlymodifier) {
rollbase = 0
}
let diceData = BoLUtility.getDiceData()