forked from public/foundryvtt-reve-de-dragon
		
	Merge branch 'v1.4-stress' into 'v1.4'
Fix: message quand /stress sans valeur See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!276
This commit is contained in:
		| @@ -888,6 +888,10 @@ export class RdDUtility { | |||||||
|   /*-------------------------------------------- */ |   /*-------------------------------------------- */ | ||||||
|   static distribuerStress(stressValue, raison = 'Inconnu', nomJoueur = undefined) { |   static distribuerStress(stressValue, raison = 'Inconnu', nomJoueur = undefined) { | ||||||
|     if (game.user.isGM) { |     if (game.user.isGM) { | ||||||
|  |       if (stressValue == undefined){ | ||||||
|  |         ui.notifications.warn("Pas de valeuir de stress à distribuer!"); | ||||||
|  |         return; | ||||||
|  |       } | ||||||
|       if (nomJoueur == undefined) { |       if (nomJoueur == undefined) { | ||||||
|         for (let actor of game.actors) { |         for (let actor of game.actors) { | ||||||
|           if (actor.hasPlayerOwner) { |           if (actor.hasPlayerOwner) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user