From e46bcce2dacd7a676953c794707316befb5c3384 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 8 Dec 2020 21:42:38 +0100 Subject: [PATCH] Fix recul --- module/actor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/actor.js b/module/actor.js index 983d3d01..f2293cd0 100644 --- a/module/actor.js +++ b/module/actor.js @@ -207,7 +207,7 @@ export class RdDActor extends Actor { } /* -------------------------------------------- */ - computeRecul( rollData ) { // Calcul du recul (p. 132) + computeRecul( rollData, encaisser = undefined ) { // Calcul du recul (p. 132) if ( rollData.arme || encaisser ) { if ( (rollData.attackerRoll.particuliereAttaque && rollData.attackerRoll.particuliereAttaque == 'force') || rollData.attackerRoll.isCharge) { let reculNiveau = this.data.data.taille.value - (rollData.attackerRoll.forceValue+rollData.attackerRoll.arme.dommages); @@ -272,7 +272,6 @@ export class RdDActor extends Actor { if (rollData.needSignificative) explications += " Significative nécessaire!"; } - this.computeRecul( rollData ); encaisser = rollData.needSignificative ? !rolled.isSign : !rolled.isSuccess; this.computeRecul( rollData, encaisser ); } else { // This is the attack roll!