Minor fixes regarding rolls and chat messages
Release Creation / build (release) Successful in 48s

This commit is contained in:
2026-06-10 20:17:45 +02:00
parent ce630feb51
commit c20750caa7
28 changed files with 91 additions and 108 deletions
-9
View File
@@ -606,11 +606,6 @@ export default class LethalFantasyRoll extends Roll {
options.D30message = d30Message
}
// Show main roll before explosion dice so Dice So Nice animates in correct order
if (game?.dice3d && rollContext.favor !== "favor" && rollContext.favor !== "disfavor") {
await game.dice3d.showForRoll(rollBase, game.user, true)
}
let rollTotal = 0
let diceResults = []
let resultType
@@ -625,9 +620,6 @@ export default class LethalFantasyRoll extends Roll {
if (hasMaxValue) {
while (diceResult === maxValue) {
let r = await new Roll(baseFormula).evaluate()
if (game?.dice3d) {
await game.dice3d.showForRoll(r, game.user, true)
}
diceResult = r.dice[0].results[0].result
diceResults.push({ dice: `${singleDice.toUpperCase()}-1`, value: diceResult - 1 })
diceSum += (diceResult - 1)
@@ -1585,7 +1577,6 @@ export default class LethalFantasyRoll extends Roll {
if (shouldExplode && term.faces > 0) {
while (diceResult === term.faces) {
const xr = await new Roll(singleDice).evaluate()
if (game?.dice3d) await game.dice3d.showForRoll(xr, game.user, true)
// Optional chaining guards against unexpected roll structure
diceResult = xr.dice?.[0]?.results?.[0]?.result ?? (term.faces - 1)
diceResults.push({ dice: `${singleDice.toUpperCase()}-1`, value: diceResult - 1 })