refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-27 23:53:50 +02:00
parent 29b6a81d95
commit 23d88e7d82
3 changed files with 12 additions and 10 deletions
+2 -1
View File
@@ -56,7 +56,8 @@ function extend_tooltip(tooltip, link, quantity)
tooltip:AddLine(format('Can disenchant from level %s |cff1eff00Uncommon|r items.', range), color.r, color.g, color.b, true)
end
end
for item_info in present(info.item(item_id)) do
local item_info = info.item(item_id)
if item_info then
local distribution = disenchant.distribution(item_info.slot, item_info.quality, item_info.level)
if getn(distribution) > 0 then
if _G.aux_tooltip_disenchant_distribution then