Skip to content

Commit 86c1512

Browse files
author
LocalIdentity
committed
Fix item granted supports regression
Using something like Forbidden Shako was having the support gems from the helmet apply to active skills granted by the helmet when they are not meant to apply
1 parent 82a0b04 commit 86c1512

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Modules/CalcSetup.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,9 @@ function calcs.initEnv(build, mode, override, specEnv)
14841484

14851485
local function addExtraSupports(value, grantedEffect, level)
14861486
local grantedEffect = grantedEffect or env.data.skills[value.skillId]
1487+
if value and grantedEffect then -- Only item ExtraSupport gems should be flagged as fromItem. Imbued gems do not pass this check
1488+
grantedEffect.fromItem = true
1489+
end
14871490
-- Some skill gems share the same name as support gems, e.g. Barrage.
14881491
-- Since a support gem is expected here, if the first lookup returns a skill, then
14891492
-- prepending "Support" to the skillId will find the support version of the gem.

0 commit comments

Comments
 (0)