Skip to content

Commit 63c317f

Browse files
committed
FIX: only calc canSupport if not source
Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com>
1 parent e42026e commit 63c317f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/Modules/CalcTriggers.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,12 @@ local function CWCHandler(env)
224224
local output = env.player.output
225225
local breakdown = env.player.breakdown
226226
for _, skill in ipairs(env.player.activeSkillList) do
227-
local canSupport = env.player.mainSkill.triggeredBy.gemData and calcLib.canGrantedEffectSupportActiveSkill(env.player.mainSkill.triggeredBy.gemData.grantedEffect, skill)
228227
local slotMatch = slotMatch(env, skill)
229-
if not source and skill.skillData.triggerTime and canSupport and skill ~= env.player.mainSkill and slotMatch and not isTriggered(skill) then
230-
source = skill
228+
if not source then
229+
local canSupport = env.player.mainSkill.triggeredBy.gemData and calcLib.canGrantedEffectSupportActiveSkill(env.player.mainSkill.triggeredBy.gemData.grantedEffect, skill)
230+
if skill.skillData.triggerTime and canSupport and skill ~= env.player.mainSkill and slotMatch and not isTriggered(skill) then
231+
source = skill
232+
end
231233
end
232234
if skill.skillData.triggeredWhileChannelling and slotMatch then
233235
t_insert(triggeredSkills, packageSkillDataForSimulation(skill, env))

0 commit comments

Comments
 (0)