Fixes Dice-so-nice integration

This commit is contained in:
Megastruktur 2020-11-04 15:50:18 +03:00
parent 4dcb02b6c2
commit a86f2077be
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
v2.8
- Clocks rebuilt to be Actors.
- Fixed Dice-so-nice integration.
v2.7
- Clocks added!

View file

@ -25,12 +25,13 @@ export async function bladesRoll(dice_amount, attribute_name = "", position = "r
let r = new Roll( `${dice_amount}d6`, {} );
// show 3d Dice so Nice if enabled
r.roll();
if (niceDice) {
game.dice3d.showForRoll(r).then((displayed) => {
showChatRollMessage(r, zeromode, attribute_name, position, effect);
ui.chat.scrollBottom();
});
} else {
r.roll();
showChatRollMessage(r, zeromode, attribute_name, position, effect)
}
}