View Single Post
02-21-09, 08:44 AM   #772
Lùinwë
A Defias Bandit
Join Date: Jan 2009
Posts: 2
Originally Posted by Dimpf View Post
I believe you're looking for something like this:

Code:
	if(UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit) or not UnitIsConnected(unit)) or not (unit == 'target') then
		self:SetBackdropColor(0, 0, 0, .8)
	else
		local r, g, b = UnitSelectionColor(unit)
		self:SetBackdropColor(r, g, b, .5)
	end
Thank you for your help, my error was in the code for the color.

Originally Posted by ObbleYeah View Post
I believe you need to wrap { } round UnitSelectionColor(unit)?
I think you have to use it only when you write tags, for example :
Code:
['MANA'] = {.11,.22,.33}