Reply
Thread Tools Display Modes
Unread 02-12-11, 07:26 PM   #1
Waky
A Cobalt Mageweaver
 
Waky's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 200
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.
Waky is offline   Reply With Quote
Unread 11-16-11, 07:22 AM   #2
yoshimo
A Murloc Raider
Join Date: May 2006
Posts: 9
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.
yoshimo is offline   Reply With Quote
Unread 11-16-11, 09:56 PM   #3
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,409
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.
Phanx is offline   Reply With Quote
Unread 11-17-11, 02:09 AM   #4
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
Thankfully, though, there are not very many of those.
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
unlimit is offline   Reply With Quote
Unread 11-21-11, 06:23 PM   #5
oomp
A Murloc Raider
 
oomp's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 7
Taken from ShadowedUnitFrames/modules/auras.lua:

Code:
-- Blizzard bug, Enrage is an empty string.
cureType = auraType == "" and "Enrage" or auraType

...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.
oomp is offline   Reply With Quote
Unread 11-22-11, 12:52 AM   #6
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 566
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
__________________
Ketho is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Wish List » UnitAura() - dispelType to return "Enrage"

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