From 8ba528953b5c82fb7cda29177f3cf5a053cd3497 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 2 Jan 2010 23:12:42 +0100 Subject: [PATCH] Do spell checks later, with no/few addons this is needed --- Molinari.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Molinari.lua b/Molinari.lua index cc96f90..5da48cc 100644 --- a/Molinari.lua +++ b/Molinari.lua @@ -9,6 +9,7 @@ for _, spark in pairs(button.sparkles) do end button:SetFrameStrata('DIALOG') +button:RegisterEvent('PLAYER_LOGIN') button:RegisterEvent('MODIFIER_STATE_CHANGED') button:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end) button:SetScript('OnLeave', function(self) @@ -74,7 +75,7 @@ GameTooltip:HookScript('OnTooltipSetItem', function(self) end end) -do +function button:PLAYER_LOGIN() if(IsSpellKnown(51005)) then spells[ITEM_MILLABLE] = {GetSpellInfo(51005), 0.5, 1, 0.5} end -- 1.7.9.5