forked from public/foundryvtt-reve-de-dragon
		
	Ne pas informer le GM en cas de "visu" des TMR
This commit is contained in:
		@@ -2111,8 +2111,10 @@ export class RdDActor extends Actor {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    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: {
 | 
			
		||||
 
 | 
			
		||||
@@ -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");
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user