diff --git a/module/item-competencecreature.js b/module/item-competencecreature.js index aa35e787..3eecf008 100644 --- a/module/item-competencecreature.js +++ b/module/item-competencecreature.js @@ -25,6 +25,7 @@ export class RdDItemCompetenceCreature extends Item { competence: arme.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 97b10eaf..506148fa 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -1185,7 +1185,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); }