Fix munition
This commit is contained in:
@@ -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)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user