mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-08 23:16:12 +01:00
fix additional dr options
This commit is contained in:
parent
e9abdbc523
commit
1908e74b3e
3 changed files with 21 additions and 6 deletions
|
|
@ -219,11 +219,21 @@ Hooks.on('chatMessage', (_, message) => {
|
|||
|
||||
const config = {
|
||||
title: title,
|
||||
roll: { formula },
|
||||
targets: target,
|
||||
roll: {
|
||||
formula,
|
||||
trait: traitValue
|
||||
},
|
||||
data: {
|
||||
traits: {
|
||||
[traitValue]: trait
|
||||
}
|
||||
},
|
||||
source: target,
|
||||
hasSave: false,
|
||||
dialog: { configure: false },
|
||||
evaluate: true
|
||||
evaluate: true,
|
||||
advantage: rollCommand.advantage == true,
|
||||
disadvantage: rollCommand.disadvantage == true
|
||||
};
|
||||
|
||||
await CONFIG.Dice.daggerheart['DualityRoll'].build(config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue