| @@ -2125,7 +2125,7 @@ export class RdDActor extends Actor { | |||||||
|           xp: carac.xp |           xp: carac.xp | ||||||
|         } |         } | ||||||
|         if (display) { |         if (display) { | ||||||
|           ChatUtility.createChatMessage(this.name, "default", { |           ChatUtility.createChatWithRollMode(this.name,  { | ||||||
|             content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-carac-xp.html`, checkXp) |             content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-carac-xp.html`, checkXp) | ||||||
|           }); |           }); | ||||||
|         } |         } | ||||||
| @@ -2156,7 +2156,7 @@ export class RdDActor extends Actor { | |||||||
|           archetypeWarning: newCompData.data.niveau > compData.data.niveau_archetype |           archetypeWarning: newCompData.data.niveau > compData.data.niveau_archetype | ||||||
|         } |         } | ||||||
|         if (display) { |         if (display) { | ||||||
|           ChatUtility.createChatMessage(this.name, "default", { |           ChatUtility.createChatWithRollMode(this.name, { | ||||||
|             content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-competence-xp.html`, checkXp) |             content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-competence-xp.html`, checkXp) | ||||||
|           }); |           }); | ||||||
|         } |         } | ||||||
|   | |||||||
| @@ -894,7 +894,7 @@ export class RdDUtility { | |||||||
|       } |       } | ||||||
|       if (nomJoueur == undefined) { |       if (nomJoueur == undefined) { | ||||||
|         for (let actor of game.actors) { |         for (let actor of game.actors) { | ||||||
|           if (actor.hasPlayerOwner) { |           if (actor.hasPlayerOwner && actor.isPersonnage() ) { | ||||||
|             actor.addCompteurValue('stress', stressValue, raison); |             actor.addCompteurValue('stress', stressValue, raison); | ||||||
|             ui.notifications.info(`${actor.name} a reçu ${stressValue} points de Stress (raison : ${raison})`); |             ui.notifications.info(`${actor.name} a reçu ${stressValue} points de Stress (raison : ${raison})`); | ||||||
|           } |           } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user