Fixes Dice-so-nice integration
This commit is contained in:
parent
4dcb02b6c2
commit
a86f2077be
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
v2.8
|
||||
- Clocks rebuilt to be Actors.
|
||||
- Fixed Dice-so-nice integration.
|
||||
|
||||
v2.7
|
||||
- Clocks added!
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue