UnitAura() - dispelType to return "Enrage"
I was thinking since if you look at the tooltip of most buffs in the top right it shows "Magic" "Poison" "Disease" "Curse" and "Enrage" but the UnitAura() returns everything but Enrage. I'd like this feature because it'd be great to be able to create an addon that allows Hunters to easily see if there's an enrage they can dispel with Tranquilizing shot without having to create a table of enrage buff names to check with.
|
Was also on my list, which i posted in the english ui forum as suggestion.
Along with the second "immunity effect", as you can bubble , vanish, and iceblock out of it, or remove them with hand of protection. |
You don't really need to create a hardcoded list of buffs; see oUF_Phanx/Elements/DebuffHighlight.lua for an example of dynamic detection of Enrage effects. It won't work for immunity or other effects, however, since those do not display any special keyword in their tooltip.
|
Thankfully, though, there are not very many of those.
|
Taken from ShadowedUnitFrames/modules/auras.lua:
Code:
-- Blizzard bug, Enrage is an empty string. ...where auraType is the 5th argument returned by UnitAura. I personally haven't tested if this solution works in all cases, but, if it does, it's a lot better than tooltip scanning. |
Just for reference, there is an old thread about this. Maybe it still has some other info
http://www.wowinterface.com/forums/s...ad.php?t=38898 |
All times are GMT -6. The time now is 11:44 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI