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 { | |||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     // 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: { | ||||||
|   | |||||||
| @@ -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"); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user