Ne pas informer le GM en cas de "visu" des TMR

This commit is contained in:
Vincent Vandemeulebrouck 2021-01-20 19:29:02 +01:00
parent 9d676a74d8
commit 46ac403081
2 changed files with 7 additions and 4 deletions

View File

@ -2111,8 +2111,10 @@ export class RdDActor extends Actor {
} }
} }
// Notification au MJ if (mode != 'visu') {
ChatMessage.create({ content: this.name + " est monté dans les TMR en mode : " + mode, whisper: ChatMessage.getWhisperRecipients("GM") }); // Notification au MJ
ChatMessage.create({ content: this.name + " est monté dans les TMR en mode : " + mode, whisper: ChatMessage.getWhisperRecipients("GM") });
}
let data = { let data = {
fatigue: { fatigue: {

View File

@ -61,8 +61,9 @@ export class RdDTMRDialog extends Dialog {
this.actor.santeIncDec("fatigue", this.nbFatigue).then(super.close()); // moving 1 cell costs 1 fatigue this.actor.santeIncDec("fatigue", this.nbFatigue).then(super.close()); // moving 1 cell costs 1 fatigue
this.actor.tmrApp = undefined; // Cleanup reference this.actor.tmrApp = undefined; // Cleanup reference
this.actor.setStatusDemiReve(false); this.actor.setStatusDemiReve(false);
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");
}
} }
/* -------------------------------------------- */ /* -------------------------------------------- */