From edc43d33119af7764b8553935ab6e3a790f14dbf Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Sat, 19 Jul 2025 17:46:37 +0200 Subject: [PATCH] Fix damage save 3 --- module/applications/ui/chatLog.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index e9467f1b..13bfb5f9 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?.roll ?? message.system.roll; + let damages = foundry.utils.deepClone(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]) => {