diff --git a/module/item-competencecreature.js b/module/item-competencecreature.js index ca2dc607..3001ee45 100644 --- a/module/item-competencecreature.js +++ b/module/item-competencecreature.js @@ -26,6 +26,7 @@ export class RdDItemCompetenceCreature extends Item { competence: itemData.name, resistance: 100, equipe: true, + dommagesReels: arme.data.dommages, penetration: 0, force: 0, rapide: true diff --git a/module/rdd-combat.js b/module/rdd-combat.js index f8b8fa54..20097958 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -1179,7 +1179,7 @@ export class RdDCombat { _computeImpactRecul(attaque) { const taille = this.defender.getTaille(); const force = this.attacker.getForce(); - const dommages = attaque.arme.data.dommagesReels; + const dommages = attaque.arme.data.dommagesReels ?? attaque.arme.data.dommages; return taille - (force + dommages); }