Here's a fixed version version for anyone who needs it
Lua Code:
TargetFrame:UnregisterEvent("UNIT_AURA")
FocusFrame:UnregisterEvent("UNIT_AURA")
local function ReleaseAllAuras(self)
for obj in self.auraPools:EnumerateActive() do
obj:Hide()
end
self.auraPools:ReleaseAll()
end
hooksecurefunc(TargetFrame, "UpdateAuras", ReleaseAllAuras)
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