Fix sur tarots et message

This commit is contained in:
2023-02-28 13:06:46 +01:00
parent cb8e70c6c1
commit 165c836f39
3 changed files with 5 additions and 5 deletions

View File

@@ -138,6 +138,7 @@ export class MaleficesCommands {
selectedCard.system.ispositif = (Math.random() > 0.5)
}
selectedCard.system.isgm = false
selectedCard.value = (selectedCard.system.ispositif)? selectedCard.system.numericvalueup : selectedCard.system.numericvaluedown
MaleficesUtility.createChatMessage(game.user.name, "", {
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/display-tarot-card.hbs`, selectedCard)
})