fix ChatMessage des queues/tetes/souffles

This commit is contained in:
Vincent Vandemeulebrouck 2021-02-03 20:40:16 +01:00
parent 1632a4890b
commit 7318b779ec

View File

@ -1029,7 +1029,7 @@ export class RdDActor extends Actor {
await this.createOwnedItem(souffle); await this.createOwnedItem(souffle);
if (options.chat) { if (options.chat) {
ChatMessage.create({ ChatMessage.create({
whisper: ChatMessage.getWhisperRecipients([ "GM", game.user.name] ), whisper: ChatUtility.getWhisperRecipientsAndGMs(game.user.name),
content: this.name + " subit un Souffle de Dragon : " + souffle.name content: this.name + " subit un Souffle de Dragon : " + souffle.name
}); });
} }
@ -1051,7 +1051,7 @@ export class RdDActor extends Actor {
await this.createOwnedItem(queue); await this.createOwnedItem(queue);
if (options.chat) { if (options.chat) {
ChatMessage.create({ ChatMessage.create({
whisper: ChatMessage.getWhisperRecipients([ "GM", game.user.name] ), whisper: ChatUtility.getWhisperRecipientsAndGMs(game.user.name),
content: this.name + " subit une Queue de Dragon : " + queue.name content: this.name + " subit une Queue de Dragon : " + queue.name
}); });
} }
@ -1085,7 +1085,7 @@ export class RdDActor extends Actor {
} }
if (content) { if (content) {
ChatMessage.create({ ChatMessage.create({
whisper: ChatMessage.getWhisperRecipients([ "GM", game.user.name] ), whisper: ChatUtility.getWhisperRecipientsAndGMs(game.user.name),
content: content content: content
}); });
} }