Skip to content

Commit 83cdb2b

Browse files
Fix active skill mods applying to support gems (#6015)
1 parent a822263 commit 83cdb2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Modules/CalcActiveSkill.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ function calcs.buildActiveSkillModList(env, activeSkill)
468468

469469
-- Apply gem/quality modifiers from support gems
470470
for _, value in ipairs(skillModList:List(activeSkill.skillCfg, "SupportedGemProperty")) do
471-
if value.keyword == "grants_active_skill" and activeSkill.activeEffect.gemData then
471+
if value.keyword == "grants_active_skill" and activeSkill.activeEffect.gemData and not activeSkill.activeEffect.gemData.tags.support then
472472
activeEffect[value.key] = activeEffect[value.key] + value.value
473473
end
474474
end

src/Modules/CalcTools.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ function calcLib.gemIsType(gem, type)
101101
(type == "elemental" and (gem.tags.fire or gem.tags.cold or gem.tags.lightning)) or
102102
(type == "aoe" and gem.tags.area) or
103103
(type == "trap or mine" and (gem.tags.trap or gem.tags.mine)) or
104-
(type == "active skill" and gem.tags.active_skill) or
104+
((type == "active skill" or type == "grants_active_skill") and gem.tags.grants_active_skill and not gem.tags.support) or
105105
(type == "non-vaal" and not gem.tags.vaal) or
106106
(type == gem.name:lower()) or
107-
gem.tags[type])
107+
((type ~= "active skill" and type ~= "grants_active_skill") and gem.tags[type]))
108108
end
109109

110110
-- From PyPoE's formula.py

0 commit comments

Comments
 (0)