View Single Post
12-18-12, 12:33 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by nefftd View Post
Currently, if I want to track these things I have to listen to SPELL_AURA_APPLIED and then perform tooltip scanning.
Why do you need to perform tooltip scanning? The list of auras that cause a Fear effect, for example, is finite and known; if your only concern is PvP, the list is even smaller. You can just build a precompiled table of Fear auras in "[id]=true" format, and then check "if FearAuras[id] then" inside your CLEU handler to see if the aura that was applied is a Fear effect. Since this uses spell IDs, not spell names or tooltip text, it is also completely locale-independent.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote