From f013a79eecdfb492ef7fee32f65481fdcf67a263 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 3 Sep 2021 22:05:37 +0200 Subject: [PATCH] =?UTF-8?q?Ne=20pas=20afficher=20l'exp=C3=A9rience=20pour?= =?UTF-8?q?=20les=20jets=20MJ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);