Quantcast WoWInterface - View Single Post - C_Timer problem with weakaura trigger
View Single Post
11-21-19, 05:43 PM   #2
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,107
This might work.
Lua Code:
  1. local AddOnName, AddOn = ...
  2. local eventFrame = CreateFrame("Frame")
  3. eventFrame:SetScript("OnEvent", function(self, event, ...)
  4.     AddOn[event](self, ...)
  5. end)
  6. eventFrame:RegisterEvent("BOSS_KILL")
  7.  
  8. local function BossKill(event, ...)
  9.     return true
  10. end
  11.  
  12. function AddOn:BOSS_KILL(event, ...)
  13.     C_Timer.After(3, BossKill)
  14. end
  Reply With Quote