From c28e8d4c9b37e53ef5cd574d672943b47e8ad9ae Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 14 Mar 2021 19:19:37 +0100 Subject: [PATCH] =?UTF-8?q?Ajuster=20r=C3=A9ussite/=C3=A9chec=20en=20demi-?= =?UTF-8?q?surprise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rdd-combat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/rdd-combat.js b/module/rdd-combat.js index 4a8d8f16..b338adb1 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -649,6 +649,7 @@ export class RdDCombat { static isEchec(rollData) { switch (rollData.ajustements.surprise.used) { case 'totale': return true; + case 'demi': return !rollData.rolled.isSign; } return rollData.rolled.isEchec; } @@ -673,6 +674,7 @@ export class RdDCombat { static isReussite(rollData) { switch (rollData.ajustements.surprise.used) { case 'totale': return false; + case 'demi': return rollData.rolled.isSign; } return rollData.rolled.isSuccess; }