diff --git a/module/actor.js b/module/actor.js index 473bd828..0f2d7916 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1482,7 +1482,7 @@ export class RdDActor extends Actor { let xpResult = this.appliquerExperience(rollData.rolled, rollData.selectedCarac.label, rollData.competence); if (display && xpResult.result) { let xpmsg = "
Points d'expérience gagnés ! Carac: " + xpResult.xpCarac + ", Comp: " + xpResult.xpCompetence; - let message = ChatUtility.prepareChatMessage('gmroll', this.name); + let message = ChatUtility.prepareChatMessage('gmroll', [ "GM", this.name ] ); message.content = "" + rollData.selectedCarac.label + "" + xpmsg; ChatMessage.create(message); diff --git a/module/chat-utility.js b/module/chat-utility.js index 4649b4cc..b6cb99ea 100644 --- a/module/chat-utility.js +++ b/module/chat-utility.js @@ -3,6 +3,7 @@ * Class providing helper methods to get the list of users, and */ export class ChatUtility { + /* -------------------------------------------- */ static removeMyChatMessageContaining(part) { const toDelete = game.messages.filter(it => it.user._id == game.user._id)