Originally Posted by Dimpf
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
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}