mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Fixed DiceSoNice multiple damageType reroll
This commit is contained in:
parent
22c3212e5e
commit
17b9719c09
1 changed files with 2 additions and 3 deletions
|
|
@ -155,9 +155,8 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
|||
}
|
||||
|
||||
if (game.modules.get('dice-so-nice')?.active) {
|
||||
for (const roll of rerolls) {
|
||||
await game.dice3d.showForRoll(roll, game.user, true);
|
||||
}
|
||||
const rerollPromises = rerolls.map(roll => game.dice3d.showForRoll(roll, game.user, true));
|
||||
await Promise.allSettled(rerollPromises);
|
||||
} else {
|
||||
foundry.audio.AudioHelper.play({ src: CONFIG.sounds.dice });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue