Fixes Dice-so-nice integration
This commit is contained in:
parent
4dcb02b6c2
commit
a86f2077be
|
@ -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!
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue