diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index 29a0f46e..595b00a3 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -211,7 +211,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo return ui.notifications.info(game.i18n.localize('DAGGERHEART.UI.Notifications.noTargetsSelected')); for (let target of targets) { - let damages = message.system.damage; + let damages = message.system.damage?.roll ?? message.system.roll; if (message.system.onSave && message.system.targets.find(t => t.id === target.id)?.saved?.success === true) { const mod = CONFIG.DH.ACTIONS.damageOnSave[message.system.onSave]?.mod ?? 1; Object.entries(damages).forEach((k,v) => { @@ -223,7 +223,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo }) } - target.actor.takeDamage(damages.roll); + target.actor.takeDamage(damages); } };