Affichage niveau min necessaire #188

This commit is contained in:
2021-05-28 09:37:22 +02:00
parent f22622710a
commit e2139f41b0
3 changed files with 12 additions and 8 deletions

View File

@ -270,12 +270,14 @@ export class RdDTMRDialog extends Dialog {
/* -------------------------------------------- */
close() {
this.actor.tmrApp = undefined; // Cleanup reference
if ( !this.viewOnly ) {
this.actor.setStatusDemiReve();
this._tellToGM(this.actor.name + " a quitté les terres médianes");
if ( this.actor.tmrApp ) {
this.actor.tmrApp = undefined; // Cleanup reference
if ( !this.viewOnly ) {
this.actor.setStatusDemiReve(false);
this._tellToGM(this.actor.name + " a quitté les terres médianes");
}
this.actor.santeIncDec("fatigue", this.cumulFatigue).then(super.close()); // moving 1 cell costs 1 fatigue
}
this.actor.santeIncDec("fatigue", this.cumulFatigue).then(super.close()); // moving 1 cell costs 1 fatigue
}
/* -------------------------------------------- */