#16 Gestion des critiques en combat

This commit is contained in:
2020-11-14 21:22:29 +01:00
parent a7ac184ca3
commit 09cfdf922e
4 changed files with 43 additions and 19 deletions

View File

@ -99,7 +99,7 @@ export class RdDRollDialog extends Dialog {
$("#carac").val(rollData.competence.data.defaut_carac);
}
// Si sort, for les points de reve à 1
if (!rollData.selectedSort.data.ptreve_reel)
if (rollData.selectedSort && !rollData.selectedSort.data.ptreve_reel)
rollData.selectedSort.data.ptreve_reel = 1;
$("#bonusmalus").val(rollData.bmValue);
updateRollResult(rollData);