Fix pour montée TMR en double
This commit is contained in:
parent
0c092b9099
commit
47ae157781
@ -2450,6 +2450,11 @@ export class RdDActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async displayTMR(mode = "normal") {
|
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";
|
let isRapide = mode == "rapide";
|
||||||
if (mode != "visu") {
|
if (mode != "visu") {
|
||||||
let minReveValue = (isRapide && !EffetsDraconiques.isDeplacementAccelere(this) ? 3 : 2) + this.countMonteeLaborieuse();
|
let minReveValue = (isRapide && !EffetsDraconiques.isDeplacementAccelere(this) ? 3 : 2) + this.countMonteeLaborieuse();
|
||||||
|
@ -206,6 +206,7 @@ export class RdDTMRDialog extends Dialog {
|
|||||||
if (!this.viewOnly) {
|
if (!this.viewOnly) {
|
||||||
this._tellToGM(this.actor.name + " a quitté les terres médianes");
|
this._tellToGM(this.actor.name + " a quitté les terres médianes");
|
||||||
}
|
}
|
||||||
|
this.isClosed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user