Skip to content

Commit

Permalink
Fix MW not applying to same exact creature
Browse files Browse the repository at this point in the history
  • Loading branch information
mysurvive committed Feb 25, 2025
1 parent 1bb99c8 commit 2836a89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/module/feats/exploit-vulnerability/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
PERSONAL_ANTITHESIS_EFFECT_UUID,
PERSONAL_ANTITHESIS_TARGET_UUID,
} from "../../utils";
import { createEffectData, hasFeat } from "../../utils/helpers";
import { createEffectData, getMWTargets, hasFeat } from "../../utils/helpers";
import { createBreachedDefenses } from "../breachedDefenses";
import { createEsotericWarden } from "../esotericWarden";
import { getSVTargets } from "../sympatheticVulnerabilities";
Expand Down Expand Up @@ -115,8 +115,10 @@ async function createMWOnActor(actor, target, rollDOS, data) {

let evTargets = new Array();

if (hasSympatheticVulnerabilities && useEVAutomation) {
evTargets = evTargets.concat(getSVTargets(target, eff, data));
if (useEVAutomation) {
evTargets = getMWTargets(target);
if (hasSympatheticVulnerabilities)
evTargets = evTargets.concat(getSVTargets(target, eff, data));
}

if (!evTargets.includes(target.actor.uuid)) {
Expand Down

0 comments on commit 2836a89

Please sign in to comment.