big module refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-18 12:43:59 +02:00
parent 6796fc1784
commit 63c317a3ff
3 changed files with 70 additions and 52 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ function m.LOAD()
)
end
local orig = SetItemRef
SetItemRef = function(...)
setglobal('SetItemRef', function(...)
local result = orig(unpack(arg))
local name, _, quality = GetItemInfo(arg[1])
if not IsShiftKeyDown() and not IsControlKeyDown() and name then
@@ -32,7 +32,7 @@ function m.LOAD()
m.extend_tooltip(ItemRefTooltip, link, 1)
end
return result
end
end)
local orig = GameTooltip:GetScript('OnTooltipAddMoney')
GameTooltip:SetScript('OnTooltipAddMoney', function(...)
if m.hooked_setter then