Fix hasDamage checks on non-attack actions

This commit is contained in:
Carlos Fernandez 2026-03-13 18:47:55 -04:00
parent 92bcaf4962
commit 1160f51347

View file

@ -354,11 +354,11 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
}
get hasDamage() {
return !foundry.utils.isEmpty(this.damage.parts) && this.type !== 'healing';
return !foundry.utils.isEmpty(this.damage?.parts) && this.type !== 'healing';
}
get hasHealing() {
return !foundry.utils.isEmpty(this.damage.parts) && this.type === 'healing';
return !foundry.utils.isEmpty(this.damage?.parts) && this.type === 'healing';
}
get hasSave() {