View Single Post
07-14-20, 02:15 PM   #1
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
RegisterUnitEvent ... UNIT_AURA

Hi,

I'm trying to mess with unit auras and code below does nothing for me.
I'm talking classic wow.

Can i do that somehow?

I tried with hooksecurefunc but that works on target and player... not on pet... at least I couldn't find anything.

Question is: can I track pet auras as an event?

Thank you

Code:
local Pet()
print("function)
end

local Target()
print("function)
end

local f = CreateFrame("Frame")
frame:RegisterUnitEvent("UNIT_AURA", "pet")
frame:SetScript("OnEvent", Pet)

local f = CreateFrame("Frame")
frame:RegisterUnitEvent("UNIT_AURA", "target")
frame:SetScript("OnEvent", Target)

THIS WORKS ... but  there is nothing to track pet auras similar to this (or?)
hooksecurefunc("TargetFrame_UpdateAuras", Target)
  Reply With Quote