mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Fixed so that non attack/damage actions don't error out when used
This commit is contained in:
parent
26bcc2dddc
commit
86d0160eb6
1 changed files with 2 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue