View Single Post
09-02-08, 10:48 AM   #8
Sekrin
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
I've never tried doing this, so it's somewhat dry-coded, but would not the following do for your needs?

Code:
if (arg2 == "SPELL_DISPEL") then
	if bit.band(arg5, COMBATLOG_OBJECT_AFFILIATION_MINE) > 0 then
		local DMName = GetSpellInfo(27277)
		if (arg10 == DMName ) then
			SpellName = arg13
			if bit.band(arg8, COMBATLOG_OBJECT_REACTION_FRIENDLY) > 0 then -- dispelling buff off friendly target
				UIErrorsFrame:AddMessage("["..SpellName.."]", 1, 1, 1); -- white
			else
				UIErrorsFrame:AddMessage("["..SpellName.."]", 1, 1, 0); -- yellow
			end
		end
	end
end

Last edited by Sekrin : 09-02-08 at 10:49 AM. Reason: Oops, left a extra line in.
  Reply With Quote