This commit is contained in:
Dapoolp 2025-07-25 00:46:33 +02:00
parent cb92667892
commit 5b4b4affb1
3 changed files with 8 additions and 7 deletions

View file

@ -195,7 +195,7 @@ export default class DHActionConfig extends DaggerheartSheet(ApplicationV2) {
if (!this.action.damage.parts) return;
const data = this.action.toObject(),
part = {};
if(this.action.actor.isNPC) part.value = { multiplier: 'flat' };
if(this.action.actor?.isNPC) part.value = { multiplier: 'flat' };
data.damage.parts.push(part);
this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) });
}