Quantcast WoWInterface - View Single Post - CLEU: CCs, silences, interrupts
View Single Post
12-18-12, 12:33 AM   #2
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.
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote