View Single Post
10-30-22, 05:47 AM   #5
Deadlyz
A Wyrmkin Dreamwalker
 
Deadlyz's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 55
Here's a fixed version version for anyone who needs it
Lua Code:
  1. TargetFrame:UnregisterEvent("UNIT_AURA")
  2. FocusFrame:UnregisterEvent("UNIT_AURA")
  3.  
  4. local function ReleaseAllAuras(self)
  5.     for obj in self.auraPools:EnumerateActive() do
  6.         obj:Hide()
  7.     end
  8.  
  9.     self.auraPools:ReleaseAll()
  10. end
  11.  
  12. hooksecurefunc(TargetFrame, "UpdateAuras", ReleaseAllAuras)
  13. hooksecurefunc(FocusFrame, "UpdateAuras", ReleaseAllAuras)

Thanks Lightspark for the fix.
Originally Posted by Lightspark
I'd be careful with self.auraPools:ReleaseAll() tho, if you start getting weird errors related to UF auras while in combat, comment out that line.
-- self.auraPools:ReleaseAll()
Thanks SDPhantom for the original code
__________________

My last movie: Rogue Sweethearts

Last edited by Deadlyz : 10-30-22 at 05:56 AM.
  Reply With Quote