From c1eac701aa8de97b6fcc3ac3437ca8d21a7983b1 Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Sat, 19 Jul 2025 17:34:39 +0200 Subject: [PATCH] Fix Damage chat message --- module/applications/ui/chatLog.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } };