Skip to content

Commit 0f5bb08

Browse files
committed
Fix bug on importing build with broken greyed gem
1 parent ff91849 commit 0f5bb08

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Modules/CalcSetup.lua

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,13 +1690,15 @@ function calcs.initEnv(build, mode, override, specEnv)
16901690
group.displayLabel = nil
16911691
for _, gemInstance in ipairs(group.gemList) do
16921692
local grantedEffect = gemInstance.gemData and gemInstance.gemData.grantedEffect or gemInstance.grantedEffect
1693-
if grantedEffect.name:match("^Companion:") or grantedEffect.name:match("^Spectre:") then
1694-
group.displayLabel = (group.displayLabel and group.displayLabel..", " or "") .. gemInstance.nameSpec
1695-
elseif grantedEffect and not grantedEffect.support and gemInstance.enabled then
1696-
group.displayLabel = (group.displayLabel and group.displayLabel..", " or "") .. grantedEffect.name
1693+
if grantedEffect and not grantedEffect.support and gemInstance.enabled then
1694+
if grantedEffect.name:match("^Companion:") or grantedEffect.name:match("^Spectre:") then
1695+
group.displayLabel = (group.displayLabel and group.displayLabel..", " or "") .. gemInstance.nameSpec
1696+
else
1697+
group.displayLabel = (group.displayLabel and group.displayLabel..", " or "") .. grantedEffect.name
1698+
end
16971699
end
1700+
group.displayLabel = group.displayLabel or "<No active skills>"
16981701
end
1699-
group.displayLabel = group.displayLabel or "<No active skills>"
17001702
end
17011703

17021704
-- Save the active skill list for display in the socket group tooltip

0 commit comments

Comments
 (0)