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; })