Quantcast WoWInterface - View Single Post - C_Timer problem with weakaura trigger
View Single Post
11-21-19, 05:47 PM   #3
hurpy_derp
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jun 2019
Posts: 5
Originally Posted by myrroddin View Post
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
Thanks, but I'm not really sure where I'm supposed to put this code
  Reply With Quote