Corrected actor.takeDamage and actor.takeHealing

This commit is contained in:
WBHarry 2026-07-18 13:54:16 +02:00
parent b2bf102443
commit 21daa7f3c0
4 changed files with 52 additions and 45 deletions

View file

@ -77,7 +77,10 @@ export default class DamageDialog extends HandlebarsApplicationMixin(Application
static updateRollConfiguration(_event, _, formData) {
const data = foundry.utils.expandObject(formData.object);
foundry.utils.mergeObject(this.config.damageFormula, data.damageFormula);
if (this.config.damageFormula)
foundry.utils.mergeObject(this.config.damageFormula, data.damageFormula);
foundry.utils.mergeObject(this.config.resourceFormulas, data.resourceFormulas);
foundry.utils.mergeObject(this.config.modifiers, data.modifiers);
this.config.selectedMessageMode = data.selectedMessageMode;