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 v2.8
- Clocks rebuilt to be Actors. - Clocks rebuilt to be Actors.
- Fixed Dice-so-nice integration.
v2.7 v2.7
- Clocks added! - 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`, {} ); let r = new Roll( `${dice_amount}d6`, {} );
// show 3d Dice so Nice if enabled // show 3d Dice so Nice if enabled
r.roll();
if (niceDice) { if (niceDice) {
game.dice3d.showForRoll(r).then((displayed) => { game.dice3d.showForRoll(r).then((displayed) => {
showChatRollMessage(r, zeromode, attribute_name, position, effect); showChatRollMessage(r, zeromode, attribute_name, position, effect);
ui.chat.scrollBottom();
}); });
} else { } else {
r.roll();
showChatRollMessage(r, zeromode, attribute_name, position, effect) showChatRollMessage(r, zeromode, attribute_name, position, effect)
} }
} }