Thread Tools Display Modes
10-16-09, 11:18 AM   #1
dualaud
A Murloc Raider
Join Date: Jul 2008
Posts: 7
Aura Icons: CustomFilters Debuffs

Hey there,

how would I proceed if I would like to see my whitelist buffs, but every debuff (which I don't now the names of apparently) I might possibly get during PvE boss encounters for example?

The way it is working now, there are no debuffs listed at all.

Thanks,
dual
  Reply With Quote
10-16-09, 03:37 PM   #2
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
oUF_AuraWatch might be your solution.
  Reply With Quote
10-16-09, 11:09 PM   #3
Waverian
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 188
Originally Posted by dualaud View Post
but every debuff (which I don't now the names of apparently) I might possibly get during PvE boss encounters for example
This is impossible to automate. Debuffs don't pass information about whether they were from a raid encounter. You need to explicitly filter them by name.

And use the .Auras element to show both buffs & debuffs.
  Reply With Quote
10-16-09, 11:32 PM   #4
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
Are you looking to find out about debuffs you get from the boss or any debuff you get? There's few debuffs you can get outside of ones that come from the encounter. I think the exceptions are from things like Heroism/Bloodlust.
  Reply With Quote
10-17-09, 02:18 AM   #5
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Here's an example you can probably understand pretty easily.
It will only show buffs that are whitelisted and only show debuffs that are not blacklisted.

Code:
local BuffWhitelist = {
 ["Guardian Spirit"] = true,
 ["Divine Sacrifice"] = true,
}
local DebuffBlacklist = {
 ["Sated"] = true,
 ["Forbearance"] = true,
}

local MyCustomAuraFilter = function(icons, unit, icon, name, rank, texture, count, dtype, duration, timeLeft, caster)
    if icon.debuff then -- this is a debuff
        if not DebuffBlacklist[name] then -- not blacklisted
            return true
        end
    else -- not a debuff aka a buff
        if BuffWhitelist[name] then -- whitelisted buff
            return true
        end
    end
    return false
end
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.

Last edited by v6o : 10-17-09 at 02:37 AM. Reason: Locals needed!
  Reply With Quote
10-17-09, 06:08 AM   #6
dualaud
A Murloc Raider
Join Date: Jul 2008
Posts: 7
Yourstruly,

this last code example covers it neatly.
I should've thought of that myself....where there is a whitelist, there must be a blacklist also, and the exclusion of listed debuffs is the consistent conclusion.
Thanks!

Last edited by dualaud : 10-17-09 at 06:09 AM. Reason: typos
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Aura Icons: CustomFilters Debuffs


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