From 86d0160eb68aec0f2b1d0eccb767161a4f0169d6 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Tue, 21 Jul 2026 21:53:36 +0200 Subject: [PATCH] Fixed so that non attack/damage actions don't error out when used --- module/data/action/baseAction.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/data/action/baseAction.mjs b/module/data/action/baseAction.mjs index 05890335..7c783f05 100644 --- a/module/data/action/baseAction.mjs +++ b/module/data/action/baseAction.mjs @@ -429,11 +429,11 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel } 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() { - return this.type === 'healing' && !foundry.utils.isEmpty(this.damage.resources); + return this.type === 'healing' && !foundry.utils.isEmpty(this.damage?.resources); } get hasSave() {