v10/v11 compatibility

This commit is contained in:
2023-05-25 08:04:31 +02:00
parent 14b536cc52
commit 8af5851246
2 changed files with 5 additions and 4 deletions

View File

@@ -404,7 +404,7 @@ export class MaleficesUtility {
console.log("Roll formula", diceFormula)
let myRoll = new Roll(diceFormula).roll({ async: false })
await this.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"))
rollData.roll = myRoll
rollData.roll = duplicate(myRoll)
rollData.total = myRoll.total
this.computeResults(rollData)