Spells fixe
Release Creation / build (release) Successful in 46s

This commit is contained in:
2026-05-20 23:17:07 +02:00
parent 9a8d580ef6
commit e417b61625
28 changed files with 105 additions and 88 deletions
+7 -1
View File
@@ -395,8 +395,14 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
}
const roll = new documents.LethalFantasyRoll(damageFormula, {}, rollOpts)
await roll.evaluate()
const diceResults = []
for (const term of roll.dice) {
for (const r of term.results) {
diceResults.push({ dice: `1D${term.faces}`, value: r.result })
}
}
roll.options.diceResults = diceResults
roll.options.rollTotal = roll.total
if (game?.dice3d) await game.dice3d.showForRoll(roll, game.user, true)
await roll.toMessage()
return
}