Fix sur double montée en TMRé

This commit is contained in:
sladecraven 2021-05-24 09:39:42 +02:00
parent 8e9ae00898
commit 96fc42e537
3 changed files with 7 additions and 1 deletions

View File

@ -2919,6 +2919,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

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

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.4.6",
"version": "1.4.7",
"manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "0.8.5",