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