From 635701033d4d483e4616c03963df5f6dc08b6908 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 18 Dec 2020 01:23:11 +0100 Subject: [PATCH] Bonus de conditions en attaque MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ne pas écraser diffConditions à chaque updateRollResult, sinon, la valeur est perdue et non visible sur le jet de dés --- module/rdd-roll.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {