From c4f962686761be2b702af24312d6e9acb102ca2a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 16 Jan 2021 23:45:15 +0100 Subject: [PATCH] Fix: /rdd avec conditions --- module/rdd-roll-resolution-table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/rdd-roll-resolution-table.js b/module/rdd-roll-resolution-table.js index e988da68..2d148010 100644 --- a/module/rdd-roll-resolution-table.js +++ b/module/rdd-roll-resolution-table.js @@ -22,7 +22,7 @@ export class RdDRollResolutionTable extends Dialog { let defRollData = { show: { title: titleTableDeResolution }, ajustementsConditions: CONFIG.RDD.ajustementsConditions, - difficultesLibres: CONFIG.RDD.difficultesLibres, + difficultesLibres: CONFIG.RDD.ajustementsConditions, etat: 0, moral: 0, carac: {}, @@ -86,7 +86,7 @@ export class RdDRollResolutionTable extends Dialog { this.updateRollResult(); }); html.find('#diffConditions').change((event) => { - rollData.diffConditions = Misc.toInt(event.currentTarget.value); + this.rollData.diffConditions = Misc.toInt(event.currentTarget.value); this.updateRollResult(); }); html.find('#carac').change((event) => {