From 2b3842494f45b542f70d199aca5d09c61a86845a Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 2 Jan 2010 13:33:36 +0100 Subject: [PATCH] Make sure its a real bag --- Molinari.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Molinari.lua b/Molinari.lua index 9849ead..cc96f90 100644 --- a/Molinari.lua +++ b/Molinari.lua @@ -64,9 +64,9 @@ GameTooltip:HookScript('OnTooltipSetItem', function(self) spell, r, g, b = Disenchantable(item) end - if(spell) then - local slot = GetMouseFocus() - button:SetAttribute('macrotext', macro:format(spell, slot:GetParent():GetID(), slot:GetID())) + local bag, slot = GetMouseFocus():GetParent(), GetMouseFocus() + if(spell and GetContainerItemInfo(bag:GetID(), slot:GetID()) and bag ~= PaperDollFrameItemFlyoutButtons) then + button:SetAttribute('macrotext', macro:format(spell, bag:GetID(), slot:GetID())) button:SetAllPoints(slot) button:Show() AutoCastShine_AutoCastStart(button, r, g, b) -- 1.7.9.5