Originally Posted by doofus
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.