1.
Your
local CustomAuraFilter = function(icons, unit, icon, name, rank, texture, count, dtype)
|
should now be; if you need it to.
local CustomAuraFilter = function(icons, unit, icon, name, rank, texture, count, dtype, duration, timeLeft, caster, isStealable, shouldConsolidate, spellID)
|
This makes filtering by ID a lot easier.
Notice that SpellID at the end?
2.
Yeah, not sure if you can get around that with the CustomAuraFilter. If you display 10 but have 20 on you and then filter 10 first, the rest (10) won't be displayed. (Hope Haste hasn't changed how it works so I'm speaking out of my nightcap)
You can however, if you only want to display dispellable debuffs then use "HARMFUL,RAID" as filter.
Or use
oUF_RaidDebuffs.