View Single Post
10-30-22, 06:13 AM   #6
Deadlyz
A Wyrmkin Dreamwalker
 
Deadlyz's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 55
Aha, it seems the story isn't over yet. Turns out this code somehow hides the default castbars of the target and focus frames

UPDT: with -- self.auraPools:ReleaseAll() commented out it seems to work.
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)
__________________

My last movie: Rogue Sweethearts

Last edited by Deadlyz : 10-30-22 at 06:17 AM.
  Reply With Quote