diff --git a/src/module/feats/shareWeakness.js b/src/module/feats/shareWeakness.js index 23c22e64..80527fff 100644 --- a/src/module/feats/shareWeakness.js +++ b/src/module/feats/shareWeakness.js @@ -1,4 +1,4 @@ -import { MORTAL_WEAKNESS_EFFECT_UUID } from "../utils/index.js"; +import { MORTAL_WEAKNESS_COMPENDIUM_SOURCE } from "../utils/index.js"; import { getActorEVEffect } from "../utils/helpers.js"; import { applySWEffect } from "../socket.js"; //Share Weakness macro @@ -13,8 +13,8 @@ function shareWeakness() { } const sa = a[0].actor; const hasShareWeakness = sa.items.some((i) => i.slug === "share-weakness"); - const hasMortalWeaknessActive = sa.items.some( - (i) => i._stats.compendiumSource === MORTAL_WEAKNESS_EFFECT_UUID + const hasMortalWeaknessActive = sa.itemTypes.effect.some( + (i) => i._stats.compendiumSource === MORTAL_WEAKNESS_COMPENDIUM_SOURCE ); const EVEffect = getActorEVEffect(sa).find( (i) => i.slug === "exploit-mortal-weakness" diff --git a/src/module/utils/index.js b/src/module/utils/index.js index 3bb3109e..9a58ab71 100644 --- a/src/module/utils/index.js +++ b/src/module/utils/index.js @@ -2,6 +2,7 @@ const EXPLOIT_VULNERABILITY_ACTION_ID = "Compendium.pf2e.actionspf2e.Item.fodJ3zuwQsYnBbtk"; const MORTAL_WEAKNESS_EFFECT_UUID = "Compendium.pf2e-thaum-vuln.thaumaturge-effects.Item.N0jy0FFGS7ViTvs9"; +const MORTAL_WEAKNESS_COMPENDIUM_SOURCE = "Item.plf15q5mFglgWG8w"; const PERSONAL_ANTITHESIS_EFFECT_UUID = "Compendium.pf2e-thaum-vuln.thaumaturge-effects.Item.EGY7Rxcxwv1aEyHL"; const OFF_GUARD_EFFECT_UUID = @@ -82,6 +83,7 @@ export { SupportedActions, EXPLOIT_VULNERABILITY_ACTION_ID, MORTAL_WEAKNESS_EFFECT_UUID, + MORTAL_WEAKNESS_COMPENDIUM_SOURCE, PERSONAL_ANTITHESIS_EFFECT_UUID, OFF_GUARD_EFFECT_UUID, MORTAL_WEAKNESS_TARGET_UUID,