diff --git a/module/moral/apprecier.mjs b/module/moral/apprecier.mjs index 38d77895..63cdafe6 100644 --- a/module/moral/apprecier.mjs +++ b/module/moral/apprecier.mjs @@ -1,3 +1,4 @@ +import { ChatUtility } from "../chat-utility.js" import { ITEM_TYPES } from "../constants.js" import { SANS_COMPETENCE } from "../item/base-items.js" import { Misc } from "../misc.js" @@ -166,7 +167,10 @@ export class Apprecier { async rollMoral(moral = undefined) { if (this.raisons.length > 0) { - ui.notifications.info('Pas de jet de moral:' + Misc.concat(this.raisons.map(r => `
- ${r}`))) + ChatMessage.create({ + whisper: ChatUtility.getOwners(this.actor), + content: 'Pas de jet de moral:' + Misc.concat(this.raisons.map(r => `
- ${r}`)) + }) return }