Skip to content

Commit c8ea962

Browse files
authored
Don't add stat comparisons for hovered gem quality if gem has no quality stats (#653)
1 parent d95e4af commit c8ea962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Classes/SkillsTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ function SkillsTabClass:CreateGemSlot(index)
787787
addQualityLines(qualityTable, gemData.secondaryGrantedEffect)
788788
end
789789
-- Add stat comparisons for hovered quality (based on set quality)
790-
if self.displayGroup.gemList[index] then
790+
if gemData and (gemData.grantedEffect.qualityStats or (gemData.secondaryGrantedEffect and gemData.secondaryGrantedEffect.qualityStats)) and self.displayGroup.gemList[index] then
791791
local calcFunc, calcBase = self.build.calcsTab:GetMiscCalculator(self.build)
792792
if calcFunc then
793793
local storedQuality = self.displayGroup.gemList[index].quality

0 commit comments

Comments
 (0)