diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index 3d29abf1..4c9ce4f3 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -324,7 +324,13 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo if (game.modules.get('dice-so-nice')?.active) { const diceSoNiceRoll = { _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: {} } }; const diceSoNicePresets = getDiceSoNicePresets(); @@ -358,7 +364,8 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo newRoll.extra = newRoll.extra.slice(2); await game.messages.get(message._id).update({ - 'system.roll': newRoll + 'system.roll': newRoll, + 'rolls': [parsedRoll] }); }; } diff --git a/templates/ui/chat/duality-roll.hbs b/templates/ui/chat/duality-roll.hbs index 0edf5788..d83136fe 100644 --- a/templates/ui/chat/duality-roll.hbs +++ b/templates/ui/chat/duality-roll.hbs @@ -204,7 +204,4 @@ - - \ No newline at end of file + \ No newline at end of file