mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
h
This commit is contained in:
parent
b3984a8e5f
commit
7e382d2e08
9 changed files with 52 additions and 61 deletions
|
|
@ -57,6 +57,10 @@ export default class DHRoll extends Roll {
|
|||
|
||||
// Create Chat Message
|
||||
if (config.source?.message) {
|
||||
if(Array.isArray(config.roll)) {
|
||||
const pool = foundry.dice.terms.PoolTerm.fromRolls(config.roll);
|
||||
roll = Roll.fromTerms([pool]);
|
||||
}
|
||||
if (game.modules.get('dice-so-nice')?.active) await game.dice3d.showForRoll(roll, game.user, true);
|
||||
} else {
|
||||
config.message = await this.toMessage(roll, config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue