From 49088f2cf0089221cad639e46f2a79b504e3b15d Mon Sep 17 00:00:00 2001 From: Cussa Mitre Date: Sat, 1 Feb 2025 01:37:01 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20#6=20-=20v12=20double=20di?= =?UTF-8?q?ce=20roll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rolls/roll.mjs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/module/rolls/roll.mjs b/module/rolls/roll.mjs index cc2e14e..c85f8a8 100644 --- a/module/rolls/roll.mjs +++ b/module/rolls/roll.mjs @@ -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;