Fix sur double montée en TMRé
This commit is contained in:
parent
8e9ae00898
commit
96fc42e537
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user