Skip to content

Commit 874d423

Browse files
author
LocalIdentity
committed
Fix invalid imbued gems appearing in list
Support gems like Prismatic Burst of Summon Wisps are not valid imbued supports as they grant active skills
1 parent f52d3cd commit 874d423

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Classes/GemSelectControl.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ function GemSelectClass:PopulateGemList()
113113
local levelRequirement = gemData.grantedEffect.levels[1].levelRequirement or 1
114114
if characterLevel >= levelRequirement or not matchLevel then
115115
if self.imbuedSelect then
116-
-- Imbued dropdown only allows non-exceptional support gems.
117-
if gemData.grantedEffect.support and not gemData.tagString:match("Exceptional") and not gemData.grantedEffect.plusVersionOf then
116+
-- Imbued dropdown only allows non-exceptional support gems and supports that don't grant active skills
117+
if gemData.grantedEffect.support and not gemData.tagString:match("Exceptional") and not gemData.grantedEffect.plusVersionOf and (not gemData.secondaryGrantedEffect or gemData.secondaryGrantedEffect.support) then
118118
self.gems["Default:" .. gemId] = gemData
119119
end
120120
else
@@ -139,7 +139,7 @@ function GemSelectClass:FilterSupport(gemId, gemData)
139139
end
140140

141141
if self.imbuedSelect then
142-
return gemData.grantedEffect.support and not gemData.tagString:match("Exceptional") and self.sortCache.canSupport[gemId]
142+
return self.sortCache.canSupport[gemId]
143143
end
144144

145145
return (not gemData.grantedEffect.support

0 commit comments

Comments
 (0)