[Fix] DiceSoNice DamageRolls (#1026)

* Fixed so the 3d damage dice can be seen by everyone when not whispered

* Fixed typo
This commit is contained in:
WBHarry 2025-08-20 10:13:51 +02:00 committed by GitHub
parent a415ab9955
commit 218f180fa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,13 @@ export default class DamageRoll extends DHRoll {
Object.values(config.damage).flatMap(r => r.parts.map(p => p.roll))
),
diceRoll = Roll.fromTerms([pool]);
await game.dice3d.showForRoll(diceRoll, game.user, true, chatMessage.whisper, chatMessage.blind);
await game.dice3d.showForRoll(
diceRoll,
game.user,
true,
chatMessage.whisper?.length > 0 ? chatMessage.whisper : null,
chatMessage.blind
);
}
await super.buildPost(roll, config, message);
if (config.source?.message) {