mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Fixed armorEffects erroring on isSuppressed when not on an actor
This commit is contained in:
parent
90f4339898
commit
dbcef140a2
1 changed files with 2 additions and 0 deletions
|
|
@ -111,6 +111,8 @@ export default class ArmorChange extends foundry.abstract.DataModel {
|
||||||
};
|
};
|
||||||
|
|
||||||
get isSuppressed() {
|
get isSuppressed() {
|
||||||
|
if (!this.parent.parent?.actor) return false;
|
||||||
|
|
||||||
switch (this.value.interaction) {
|
switch (this.value.interaction) {
|
||||||
case CONFIG.DH.GENERAL.activeEffectArmorInteraction.active.id:
|
case CONFIG.DH.GENERAL.activeEffectArmorInteraction.active.id:
|
||||||
return !this.parent.parent?.actor.system.armor;
|
return !this.parent.parent?.actor.system.armor;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue