Thread Tools Display Modes
06-18-11, 11:24 AM   #1
Agata
A Murloc Raider
Join Date: Jun 2010
Posts: 7
Filter Raid Debuffs

I'm trying to filter specific Debuffs from the default raid frames.
Information like "Recently Mass Resurrected" isn't helping in heavy debuff fights like Chimaeron/BOT Council.

This code works:

Code:
local function setupFilter(frame)


	for i=1, #frame.debuffFrames do

		if ( UnitDebuff(frame.unit, i) ) then
			name = UnitDebuff(frame.unit, i)
			if (name == "Weakened Soul") then
				print(name)
				print(frame.debuffFrames[i]:GetName())
				frame.debuffFrames[i]:Hide()			
			end
		end

	end
end


hooksecurefunc("CompactUnitFrame_UpdateAuras", setupFilter)
Any guidance how to avoid the blank space in the raid frames and do the debuffs to string together?

Maybe changing the index - but how?

Thank you very much in advance!
  Reply With Quote
06-18-11, 02:54 PM   #2
brotherhobbes
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 313
My limited understanding of how (de)buffs work now is that they are using secure templates. So it is probably more complicated.

There are definitely some (de)buff filtering addons on this site, but after looking for a very short period, it appears that they probably would not let you right click on a buff to cancel it. If you aren't interested in that functionality (secure templates) just search for "filter" on this site. I see two addons that appear to work in 4.1 that might give you some insight.
  Reply With Quote
06-18-11, 03:34 PM   #3
Agata
A Murloc Raider
Join Date: Jun 2010
Posts: 7
Actually I did like you told me and found "SimpleAuraFilter", which repositions the buffs to erase the blank space.
I try to go this way now and increase/decrease the MaxDebuffs Value.


If anybody else knows a smoother way: Feel free to help!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Filter Raid 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