Skip to content

Commit a83eedd

Browse files
committed
Remove corruption rolls when adding implicit
1 parent 7f8c64e commit a83eedd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,10 +2776,9 @@ function ItemsTabClass:CorruptDisplayItem(modType)
27762776
t_insert(currentModType == "Corrupted" and item.implicitModLines or item.scourgeModLines, i, implicit)
27772777
end
27782778
end
2779-
else
2780-
for i, modLine in ipairs(item.explicitModLines) do
2781-
if corruptedRanges[i] ~= 1 then modLine.corruptedRange = corruptedRanges[i] end
2782-
end
2779+
end
2780+
for i, modLine in ipairs(item.explicitModLines) do
2781+
modLine.corruptedRange = (not addingImplicits and corruptedRanges[i] ~= 1) and corruptedRanges[i] or 1
27832782
end
27842783
item:BuildAndParseRaw()
27852784
return item

0 commit comments

Comments
 (0)