This commit is contained in:
WBHarry 2026-07-21 21:55:24 +02:00 committed by GitHub
commit 93dc057205
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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