From 5f9232c04e9d8ac55fe40cd4fca9c210c4976d80 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sat, 10 Sep 2016 13:53:01 +0200 Subject: [PATCH] module refactoring and tooltip bugfix --- core/tooltip.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/tooltip.lua b/core/tooltip.lua index a8ed37b..b1c9fca 100644 --- a/core/tooltip.lua +++ b/core/tooltip.lua @@ -30,12 +30,13 @@ function LOAD() local orig = SetItemRef setglobal('SetItemRef', function(...) auto[arg] = true local name, _, quality = GetItemInfo(arg[1]) + local ret = A(orig(unpack(arg))) if not IsShiftKeyDown() and not IsControlKeyDown() and name then local color_code = select(4, GetItemQualityColor(quality)) local link = color_code .. '|H' .. arg[1] .. '|h[' .. name .. ']|h' .. FONT_COLOR_CODE_CLOSE extend_tooltip(ItemRefTooltip, link, 1) end - return orig(unpack(arg)) + return ret end) end