Originally Posted by myrroddin
This might work.
Lua Code:
local AddOnName, AddOn = ... local eventFrame = CreateFrame("Frame") eventFrame:SetScript("OnEvent", function(self, event, ...) AddOn[event](self, ...) end) eventFrame:RegisterEvent("BOSS_KILL") local function BossKill(event, ...) return true end function AddOn:BOSS_KILL(event, ...) C_Timer.After(3, BossKill) end
|
Thanks, but I'm not really sure where I'm supposed to put this code