diff --git a/changelog.md b/changelog.md index 3983e091..c259f3a7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # 12.0 ## 12.0.5 - Les mauvais jours d'Astrobazzarh - Fix: on peut de nouveau ouvrir l'Ă©dition de calendrier +- Fix: on ne peut plus ouvrir plusieurs fenĂȘtres de lancer de sort ## 12.0.4 - La plaie d'Astrobazzarh - **Support V12** diff --git a/module/rdd-tmr-dialog.js b/module/rdd-tmr-dialog.js index f53962dd..65765504 100644 --- a/module/rdd-tmr-dialog.js +++ b/module/rdd-tmr-dialog.js @@ -129,7 +129,7 @@ export class RdDTMRDialog extends Dialog { this.html.find('form.tmr-dialog *').click(event => this.subdialog?.bringToTop()); // Roll Sort - this.html.find('.lancer-sort').click(event => this.actor.rollUnSort(this._getCoordActor())); + this.html.find('.lancer-sort').click(event => this.lancerUnSort()); this.html.find('.lire-signe-draconique').click(event => this.actor.rollLireSigneDraconique(this._getCoordActor())); this.html.find('img.tmr-move').click(event => this.deplacementTMR(this.html.find(event.currentTarget)?.data('move'))); @@ -142,6 +142,13 @@ export class RdDTMRDialog extends Dialog { this.updateValuesDisplay(); } + lancerUnSort() { + if (this.subdialog) { + return this.forceTMRContinueAction(); + } + return this.actor.rollUnSort(this._getCoordActor()); + } + async onDeplacement() { await this.manageRencontre(TMRUtility.getTMR(this._getCoordActor())); }