Skip to content

Commit

Permalink
Merge pull request #165 from mysurvive/Fix_Share_Weakness
Browse files Browse the repository at this point in the history
Fix Share Weakness
  • Loading branch information
mysurvive authored Aug 5, 2024
2 parents 84b2fc4 + b6776e1 commit 029a6cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/module/feats/shareWeakness.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/module/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 029a6cf

Please sign in to comment.