Do spell checks later, with no/few addons this is needed
Adrian L Lange [01-02-10 - 22:12]
Do spell checks later, with no/few addons this is needed
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