mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-05 20:34:15 +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) {
|
if (game.modules.get('dice-so-nice')?.active) {
|
||||||
for (const roll of rerolls) {
|
const rerollPromises = rerolls.map(roll => game.dice3d.showForRoll(roll, game.user, true));
|
||||||
await game.dice3d.showForRoll(roll, game.user, true);
|
await Promise.allSettled(rerollPromises);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
foundry.audio.AudioHelper.play({ src: CONFIG.sounds.dice });
|
foundry.audio.AudioHelper.play({ src: CONFIG.sounds.dice });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue