Thread: UnitAura API
View Single Post
04-16-18, 09:25 PM   #6
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 341
Originally Posted by doofus View Post
OK, but the standard raid frames have a setting "show only dispellable debuffs". How do they do it?

In my case this setting has been unselected; nevertheless the party frames have displayed the debuffs on their top right corner and they all have been dispellable by my priest and druid - coincidence ?

Edit:

In addition, gamepedia seems to differ from wowpedia considerably

https://wow.gamepedia.com/API_UnitAura

http://wowwiki.wikia.com/wiki/API_UnitAura
To get only dispellable debuffs, you need to pass different 3rd argument to UnitAura. It's even mentioned on wowpedia.

RAID - auras that can be applied (if HELPFUL) or dispelled (if HARMFUL) by the player.
So, your third arg should be "HARMFUL|RAID" instead of just "HARMFUL". And if you know that the default UI does it, you should look for it in Blizz UI code then, it's fairly easy to find.
__________________
  Reply With Quote