mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Fixed message.rolls not being updated
This commit is contained in:
parent
dfd10da324
commit
565f0f9e6f
2 changed files with 10 additions and 6 deletions
|
|
@ -324,7 +324,13 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
|
||||||
if (game.modules.get('dice-so-nice')?.active) {
|
if (game.modules.get('dice-so-nice')?.active) {
|
||||||
const diceSoNiceRoll = {
|
const diceSoNiceRoll = {
|
||||||
_evaluated: true,
|
_evaluated: true,
|
||||||
dice: [new Die({ ...term, faces: term._faces, results: term.results.filter(x => !x.rerolled) })],
|
dice: [
|
||||||
|
new foundry.dice.terms.Die({
|
||||||
|
...term,
|
||||||
|
faces: term._faces,
|
||||||
|
results: term.results.filter(x => !x.rerolled)
|
||||||
|
})
|
||||||
|
],
|
||||||
options: { appearance: {} }
|
options: { appearance: {} }
|
||||||
};
|
};
|
||||||
const diceSoNicePresets = getDiceSoNicePresets();
|
const diceSoNicePresets = getDiceSoNicePresets();
|
||||||
|
|
@ -358,7 +364,8 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
|
||||||
newRoll.extra = newRoll.extra.slice(2);
|
newRoll.extra = newRoll.extra.slice(2);
|
||||||
|
|
||||||
await game.messages.get(message._id).update({
|
await game.messages.get(message._id).update({
|
||||||
'system.roll': newRoll
|
'system.roll': newRoll,
|
||||||
|
'rolls': [parsedRoll]
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="reroll-div">
|
|
||||||
<button class="reroll-button"><i class="fas fa-dice"></i><span>Reroll</span></button>
|
|
||||||
</div> -->
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue