Fix munition

This commit is contained in:
2021-04-23 20:40:59 +02:00
parent 131629fdb5
commit 0149f49e7c
3 changed files with 19 additions and 11 deletions

View File

@@ -211,14 +211,19 @@ export class VadentisActor extends Actor {
title: `${this.name} encaisse des dégâts !`,
msg: `${this.name} encaisse ${damageValue} dégâts !`
}
if ( game.user.isGM) {
msgData.msg += `<br>Ses Points de Vie actuels sont désormais de ${newValue}.`;
}
ChatMessage.create({
//whisper: ChatUtility.getWhisperRecipientsAndGMs(game.user.name),
content: await renderTemplate(`systems/foundryvtt-vadentis/templates/chat-generic-result.html`, msgData)
});
if ( game.user.isGM) {
msgData.msg = `<br>Ses Points de Vie actuels sont désormais de ${newValue}.`;
ChatMessage.create({
whisper: ChatMessage.getWhisperRecipients( 'GM'),
content: await renderTemplate(`systems/foundryvtt-vadentis/templates/chat-generic-result.html`, msgData)
});
}
}
/* -------------------------------------------- */