Prevent assigning main damage on healing actions

This commit is contained in:
Carlos Fernandez 2026-07-18 00:16:51 -04:00
parent 23ebe6f6b5
commit 2ef78f2c89
2 changed files with 34 additions and 32 deletions

View file

@ -474,7 +474,7 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
source.damage.main = null;
source.damage.resources = {};
for (const [partKey, part] of Object.entries(source.damage.parts)) {
if (partKey === 'hitPoints') {
if (partKey === 'hitPoints' && source.type !== 'healing') {
source.damage.main = {
...part,
includeBase: source.damage.includeBase,