Originally Posted by Nibelheim
Ahh, thought you were already accounting for no target situations. Here you go:
Code:
if UnitExists("target") then
local _, Class = UnitClass("target")
local Color = RAID_CLASS_COLORS[Class] or {r = 1, g = 1, b = 1}
self:SetBackdropBorderColor(Color.r, Color.g, Color.b, self.bg:GetAlpha())
end
|
Hello Nibelheim,
ive found you scripts google'ing xD
i want to ask if this code can be done also for party/raid members.
i mean the classcolor border for each player in party or raid. it is possible?
ty very much ^^