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
ChatMessage.create({ content: this.name + " est monté dans les TMR en mode : " + mode, whisper: ChatMessage.getWhisperRecipients("GM") });
if (mode != 'visu') {
// Notification au MJ
ChatMessage.create({ content: this.name + " est monté dans les TMR en mode : " + mode, whisper: ChatMessage.getWhisperRecipients("GM") });
}
let data = {
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.tmrApp = undefined; // Cleanup reference
this.actor.setStatusDemiReve(false);
this._tellToGM(this.actor.name + " a quitté les terres médianes")
if (! this.viewOnly) {
this._tellToGM(this.actor.name + " a quitté les terres médianes");
}
}
/* -------------------------------------------- */