Merge branch 'v14-Dev' into v14/conditional-effects

This commit is contained in:
WBHarry 2026-03-14 00:12:05 +01:00
commit f605ea7035

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() {