diff --git a/module/actor.js b/module/actor.js index 1d1adfa3..3df5bd9d 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1014,7 +1014,8 @@ export class RdDActor extends Actor { this.update( { "data.blessures": blessures } ); } - + + /* -------------------------------------------- */ async jetDeMoral(situation) { let jetMoral = new Roll("1d20").roll(); RdDDice.show(jetMoral); @@ -1037,11 +1038,12 @@ export class RdDActor extends Actor { await this.update( { 'data.compteurs': compteurs} ); } ChatMessage.create({ - whisper: ChatMessage.getWhisperRecipients(game.user.name), + whisper: ChatMessage.getWhisperRecipients(game.user.name).concat(ChatMessage.getWhisperRecipients("GM") ), content: "Jet de moral ("+ jetMoral.total + ")" + (succes? "réussi": "manqué") + " en situation "+situation+", vous "+(ajustementMoral>0? "gagnez du moral":ajustementMoral<0? "perdez du moral": "gardez votre moral") }); } + /* -------------------------------------------- */ _calculAjustementMoral(succes, moral, situation) { switch (situation) { @@ -1098,7 +1100,7 @@ export class RdDActor extends Actor { await this.update( { 'data.compteurs.ethylisme': ethylisme} ); const message = { content: msgText, - whisper: ChatMessage.getWhisperRecipients(game.user.name) + whisper: ChatMessage.getWhisperRecipients(game.user.name).concat(ChatMessage.getWhisperRecipients("GM") ) }; ChatMessage.create(message); @@ -1111,7 +1113,7 @@ export class RdDActor extends Actor { async stressTest() { const message = { content: "", - whisper: ChatMessage.getWhisperRecipients(game.user.name) + whisper: ChatMessage.getWhisperRecipients(game.user.name).concat(ChatMessage.getWhisperRecipients("GM") ) }; await this.transformerStress(message); diff --git a/system.json b/system.json index d80f56c8..88e63991 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.1.17", + "version": "1.1.18", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.8", "templateVersion": 72,