diff --git a/module/rdd-roll.js b/module/rdd-roll.js index 48d5993f..6070a707 100644 --- a/module/rdd-roll.js +++ b/module/rdd-roll.js @@ -35,7 +35,7 @@ export class RdDRoll extends Dialog { etat: actor.data.data.compteurs.etat.value, carac: actor.data.data.carac, finalLevel: 0, - diffConditions: 0, + diffConditions: rollData.arme ? RdDBonus.bonusAttaque(rollData.surpriseDefenseur) :0, diffLibre: 0, editLibre: true, editConditions: true, @@ -110,7 +110,6 @@ export class RdDRoll extends Dialog { rollData.dmg = rollData.attackerRoll ? rollData.attackerRoll.dmg : RdDBonus.dmg(rollData, actor.getBonusDegat()); rollData.finalLevel = rollLevel; rollData.caracValue = caracValue; - rollData.diffConditions = RdDBonus.bonusAttaque(rollData.surpriseDefenseur); rollData.coupsNonMortels = (rollData.attackerRoll ? rollData.attackerRoll.dmg.mortalite : rollData.dmg.mortalite) == 'non-mortel'; let dmgText = Misc.toSignedString(rollData.dmg.total); if (rollData.coupsNonMortels) {