forked from public/foundryvtt-reve-de-dragon
		
	Affichage niveau min necessaire #188
This commit is contained in:
		| @@ -2978,6 +2978,10 @@ export class RdDActor extends Actor { | ||||
|  | ||||
|   /* -------------------------------------------- */ | ||||
|   async displayTMR(mode = "normal") { | ||||
|     if (this.tmrApp) { | ||||
|       ui.notifications.warn("Vous êtes déja dans les TMR...."); | ||||
|       return | ||||
|     } | ||||
|     let demiReve = this.listeEffets(it => it.label == "Demi-rêve"); | ||||
|     if (mode != 'visu' && demiReve.length > 0) { | ||||
|       ui.notifications.warn("Le joueur ou le MJ est déja dans les Terres Médianes avec ce personnage ! Visualisation uniquement"); | ||||
|   | ||||
| @@ -46,7 +46,6 @@ export class RdDTMRDialog extends Dialog { | ||||
|     } | ||||
|     super(dialogConf, dialogOptions); | ||||
|  | ||||
|  | ||||
|     this.tmrdata = duplicate(tmrData); | ||||
|     this.actor = actor; | ||||
|     this.actor.tmrApp = this; // reference this app in the actor structure | ||||
|   | ||||
		Reference in New Issue
	
	Block a user