From 1405b4d3a85d8af41cd98bb6dea43564c30be021 Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Sat, 19 Jul 2025 17:44:05 +0200 Subject: [PATCH] Fix damage save 2 --- 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 90d93e54..aa1b90cd 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -216,7 +216,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo const mod = CONFIG.DH.ACTIONS.damageOnSave[message.system.onSave]?.mod ?? 1; Object.entries(damages).forEach((k,v) => { v.total = 0; - v.forEach(part => { + v.parts.forEach(part => { part.total = Math.ceil(part.total * mod); v.total += part.total; })