Fix dmg armes à 2 mains

This commit is contained in:
Vincent Vandemeulebrouck 2021-01-13 23:22:15 +01:00
parent fb9117aee3
commit 82fd02e3d1

View File

@ -74,7 +74,7 @@ export class RdDBonus {
/* -------------------------------------------- */ /* -------------------------------------------- */
static _dmgArme(rollData) { static _dmgArme(rollData) {
return parseInt(rollData.arme?.data.dommages ?? 0); return rollData.arme == undefined ? 0 : (rollData.arme.data.dommagesReels ?? Number(rollData.arme.data.dommages ?? 0));
} }
static _peneration(rollData) { static _peneration(rollData) {