Thread Tools Display Modes
02-04-10, 12:02 PM   #1
mete0ra
A Murloc Raider
Join Date: Dec 2009
Posts: 4
Show only Class Debuff

there is a way to only show the debuffs of a certain class, regardless of who applies them?
example two warlock applying the curse at the same target.
  Reply With Quote
02-05-10, 05:39 AM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
You would have to create your own filter list for that.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
02-05-10, 06:47 AM   #3
mete0ra
A Murloc Raider
Join Date: Dec 2009
Posts: 4
I tried to use ouf_AuraWatch entering debuff that interested me to see. The plugin works just making me see what I'm interested ... the problem is that is not integrated with ouf so I must change many things to suit my layout, it could be included in the ouf's core and add a variable that contains the list of debuff that is set in the layout to set debuff display.
  Reply With Quote
02-05-10, 08:13 AM   #4
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
It already is possible to sort and filter auras within oUF.

http://github.com/haste/oUF/blob/mas.../aura.lua#L113
self.CustomAuraFilter = myCustomFilterFunc
__________________
「貴方は1人じゃないよ」
  Reply With Quote
02-05-10, 11:33 AM   #5
mete0ra
A Murloc Raider
Join Date: Dec 2009
Posts: 4

tnx for help.
but how i can apply CustomAuraFilter only up debuff and don't filter buff?
i tried to use
self.Debuffs.CustomAuraFilter = myCustomFilter
but does not work
  Reply With Quote
02-05-10, 12:30 PM   #6
mete0ra
A Murloc Raider
Join Date: Dec 2009
Posts: 4
resolved
Code:
local debuffFilter = {
	[GetSpellInfo(47865)] = true, -- CoE
	[GetSpellInfo(47867)] = true, -- CoD
	[GetSpellInfo(59164)] = true, -- Haunt
	[GetSpellInfo(47811)] = true, -- Immolate
	[GetSpellInfo(47863)] = true, -- Seed of Corruption
	[GetSpellInfo(47843)] = true, -- Unstable Affliction
	[GetSpellInfo(47813)] = true, -- Corruption
	[GetSpellInfo(47855)] = true, -- Drain Soul
	[GetSpellInfo(50511)] = true, -- CoW
	[GetSpellInfo(11719)] = true, -- CoT
	[GetSpellInfo(17800)] = true, -- Shadow Mastery
	[GetSpellInfo(18223)] = true, -- CoEx
}

local function customFilter(icons, unit, icon, name, rank, texture, count, dtype, duration, expiration, caster)
	if(debuffFilter[name] or not icon.debuff) then
		return true
	end 
end
  Reply With Quote
02-07-10, 09:42 AM   #7
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Use spellID instead of name, this makes sure its the right spell.
Many spells in WoW has the same name.
  Reply With Quote
02-07-10, 12:38 PM   #8
Shadowed
...
Premium Member
Featured
Join Date: Feb 2006
Posts: 387
Filtering by spellID is bad, it requires you to either have a worst filter or you have to add a lot more data since you need all of the previous ranks. Checking UnitIsPlayer or checking if the caster came from the player is a saner solution.
  Reply With Quote
02-07-10, 12:51 PM   #9
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Well I use the filter for specific buffs, and some of them has the same name of other spells.
I check for spellid matched to a table and if the owner is player, pet or vehicle.

I do the same for desaturation on target debuffs aswell (owner or spell match).

If you just want to show your own spells you can simply check for the owner.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Show only Class Debuff


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