Skip to content

Commit

Permalink
🐛 Fix #6 - v12 double dice roll
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussa committed Feb 1, 2025
1 parent f5ee663 commit 49088f2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions module/rolls/roll.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,12 @@ export class Trued6Roll {
let content = await renderTemplate(this.RollTemplate, templateData);
chatData.content = content;
chatData.rolls = [roll];
if (game.dice3d) {
await game.dice3d.showForRoll(roll, game.user, true, chatData.whisper, chatData.blind)
} else {
chatData.sound = CONFIG.sounds.dice;
if (game.version.startsWith(11)) {
if (game.dice3d)
await game.dice3d.showForRoll(roll, game.user, true, chatData.whisper, chatData.blind)
else {
chatData.sound = CONFIG.sounds.dice;
}
}
finalRoll = await this.finalizeRoll(chatData, actor, roll, data, rollStyle, actorRollData);
return finalRoll;
Expand Down

0 comments on commit 49088f2

Please sign in to comment.