@@ -887,14 +887,22 @@ function TradeQueryGeneratorClass:addMoreWEMods()
887887 end
888888 for _ ,skillGroup in ipairs (self .itemsTab .build .skillsTab .socketGroupList ) do
889889 for _ ,gem in ipairs (skillGroup .gemList ) do
890- if gem .gemData .tags .aura and gem .enabled and gem .enableGlobal2 then
891- local tmpAura = gem .nameSpec :gsub (" Vaal " ," " ):gsub (" Impurity" ," Purity" ):gsub (" of" ," Of" ):gsub (" " ," " )
892- for id ,mod in pairs (self .modData .WatchersEye ) do
893- if id :find (tmpAura ) and not isValueInTable (getTableOfTradeModIds (self .modWeights ),mod .tradeMod .id ) then
894- table.insert (self .modWeights ,{invert = false ,meanStatDiff = 0 ,weight = 0 ,tradeModId = mod .tradeMod .id })
895- end
890+ local tmpAura = " "
891+ if not gem .enabled then
892+ goto continue
893+ elseif gem .nameSpec :find (" Vaal" ) and gem .enableGlobal2 then
894+ tmpAura = gem .nameSpec :gsub (" Vaal " ," " ):gsub (" Impurity" ," Purity" ):gsub (" of" ," Of" ):gsub (" " ," " )
895+ elseif gem .gemData and gem .gemData .tags .aura or gem .fromItem then
896+ tmpAura = gem .nameSpec :gsub (" of" ," Of" ):gsub (" " ," " )
897+ else
898+ goto continue
899+ end
900+ for id ,mod in pairs (self .modData .WatchersEye ) do
901+ if id :find (tmpAura ) and not isValueInTable (getTableOfTradeModIds (self .modWeights ),mod .tradeMod .id ) then
902+ table.insert (self .modWeights ,{invert = false ,meanStatDiff = 0 ,weight = 0 ,tradeModId = mod .tradeMod .id })
896903 end
897904 end
905+ :: continue::
898906 end
899907 end
900908end
0 commit comments