Fix pour montée TMR en double

This commit is contained in:
sladecraven 2021-05-24 09:35:49 +02:00
parent 0c092b9099
commit 47ae157781
2 changed files with 6 additions and 0 deletions

View File

@ -2450,6 +2450,11 @@ export class RdDActor extends Actor {
/* -------------------------------------------- */
async displayTMR(mode = "normal") {
if (this.currentTMR != undefined && !this.currentTMR.isClosed) {
ui.notifications.warn('Vous êtes déja dans les Terres Médianes !');
return;
}
let isRapide = mode == "rapide";
if (mode != "visu") {
let minReveValue = (isRapide && !EffetsDraconiques.isDeplacementAccelere(this) ? 3 : 2) + this.countMonteeLaborieuse();

View File

@ -206,6 +206,7 @@ export class RdDTMRDialog extends Dialog {
if (!this.viewOnly) {
this._tellToGM(this.actor.name + " a quitté les terres médianes");
}
this.isClosed = true;
}