Ajuster réussite/échec en demi-surprise

This commit is contained in:
Vincent Vandemeulebrouck 2021-03-14 19:19:37 +01:00
parent 658e4f45aa
commit c28e8d4c9b

View File

@ -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;
}