Skip to content

Commit 6c6cad0

Browse files
Fix skill level mod not applied to skill granted by items (#796)
* fix-721 * missing gemId
1 parent ebe3dde commit 6c6cad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Modules/CalcSetup.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,8 +1310,8 @@ function calcs.initEnv(build, mode, override, specEnv)
13101310
enabled = true,
13111311
}
13121312
activeGemInstance.fromItem = grantedSkill.sourceItem ~= nil
1313-
activeGemInstance.gemId = nil
13141313
activeGemInstance.level = grantedSkill.level
1314+
activeGemInstance.gemId = data.gemForSkill[data.skills[grantedSkill.skillId]]
13151315
activeGemInstance.enableGlobal1 = true
13161316
activeGemInstance.noSupports = grantedSkill.noSupports
13171317
group.noSupports = grantedSkill.noSupports
@@ -1633,7 +1633,7 @@ function calcs.initEnv(build, mode, override, specEnv)
16331633
t_insert(env.player.activeSkillList, activeSkill)
16341634
end
16351635
end
1636-
if gemInstance.gemData and not accelerate.requirementsGems then
1636+
if gemInstance.gemData and not (accelerate.requirementsGems or group.gemList[gemIndex].fromNode or group.gemList[gemIndex].fromItem) then
16371637
t_insert(env.requirementsTableGems, {
16381638
source = "Gem",
16391639
sourceGem = gemInstance,

0 commit comments

Comments
 (0)