diff --git a/module/actor.js b/module/actor.js index 5eecede5..698fc3ec 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2082,7 +2082,7 @@ export class RdDActor extends Actor { createCallbackExperience() { return { condition: r => r.rolled.isPart && r.finalLevel < 0 && game.settings.get("core", "rollMode") != 'selfroll', - action: r => this.appliquerAjoutExperience(r, game.settings.get("core", "rollMode") != 'blindroll') + action: r => this.appliquerAjoutExperience(r, (game.settings.get("core", "rollMode") != 'blindroll' && !user.isGM)) }; } @@ -2157,7 +2157,7 @@ export class RdDActor extends Actor { let xpData = await this._appliquerExperience(rollData.rolled, rollData.selectedCarac.label, rollData.competence); if (xpData && display) { let message = { - whisher: ChatUtility.getWhisperRecipientsAndGMs(this.name), + whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-gain-xp.html`, xpData) } ChatMessage.create(message);