diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index 9a8162b911..165ff9d9b5 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -1783,10 +1783,17 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp extraTags[skill.tag] = true end end + local selAffix = item[outputTable][outputIndex] and item[outputTable][outputIndex].modId local affixList = { } + local retainedAffixes = { } for modId, mod in pairs(item.affixes) do - if mod.type == type and not excludeGroups[mod.group] and item:GetModSpawnWeight(mod, extraTags) > 0 and not item:CheckIfModIsDelve(mod) then - t_insert(affixList, modId) + if mod.type == type and not excludeGroups[mod.group] and not item:CheckIfModIsDelve(mod) then + if item:GetModSpawnWeight(mod, extraTags) > 0 then + t_insert(affixList, modId) + elseif modId == selAffix then + t_insert(affixList, modId) + retainedAffixes[modId] = true + end end end table.sort(affixList, function(a, b) @@ -1821,7 +1828,9 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp end local modString = table.concat(mod, "/") local label = modString - if item.type == "Flask" then + if retainedAffixes[modId] then + label = "^8[Retained] " .. modString + elseif item.type == "Flask" then label = mod.affix .. " ^8[" .. modString .. "]" end control.list[i + 1] = {