Skip to content

Commit 3c0a328

Browse files
authored
Fix missing nameSpec for skills granted by items on export (#5569)
1 parent 282a1ae commit 3c0a328

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Modules/CalcSetup.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,9 @@ function calcs.initEnv(build, mode, override, specEnv)
588588
if item and item.grantedSkills then
589589
-- Find skills granted by this item
590590
for _, skill in ipairs(item.grantedSkills) do
591+
local skillData = env.data.skills[skill.skillId]
591592
local grantedSkill = copyTable(skill)
593+
grantedSkill.nameSpec = skillData and skillData.name or nil
592594
grantedSkill.sourceItem = item
593595
grantedSkill.slotName = slotName
594596
t_insert(env.grantedSkillsItems, grantedSkill)
@@ -922,6 +924,7 @@ function calcs.initEnv(build, mode, override, specEnv)
922924
group.sourceNode = grantedSkill.sourceNode
923925
local activeGemInstance = group.gemList[1] or {
924926
skillId = grantedSkill.skillId,
927+
nameSpec = grantedSkill.nameSpec,
925928
quality = 0,
926929
enabled = true,
927930
}

0 commit comments

Comments
 (0)