Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » RegisterUnitEvent ... UNIT_AURA

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off