View Single Post
09-21-18, 01:33 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
You can try working with default filters. You can use multiple filter options at once like "HELPFUL|PLAYER"

Filter list:

NONE
HELPFUL - buffs.
HARMFUL - debuffs.
PLAYER - auras that were applied by the player.
RAID - auras that can be applied (if HELPFUL) or dispelled (if HARMFUL) by the player.
CANCELABLE - buffs that can be removed (such as by right-clicking or using the /cancelaura command)
NOT_CANCELABLE - buffs that cannot be removed
INCLUDE_NAME_PLATE_ONLY - includes some specific auras which Blizzard decides that they should appear on nameplates

Here is the Blizzard nameplate filter function:
https://www.townlong-yak.com/framexm...Plates.lua#140

If the default filters get you nowhere you need a custom filter. The max number of debuffs available is 40. You will probably need two loops one for buffs and one for debuffs and you need to check each one against a certain spellid or spellname and on top you can match other stuff like who casted the aura etc.

Here is how oUF provides custom filters:
https://github.com/oUF-wow/oUF/blob/...auras.lua#L186

oUF supports nameplates and thus allows you to work with a custom filter on nameplate units.
https://github.com/zorker/rothui/blo...eplate.lua#L50

If you are using any other nameplate addon you need it to support aura white/blacklisting of some sort.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-21-18 at 01:43 AM.
  Reply With Quote