Skip to content

Commit

Permalink
Make sure its a real bag
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Jan 2, 2010
1 parent 9b8a37b commit 2b38424
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Molinari.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 2b38424

Please sign in to comment.