Hello! I was looking to make a rather simplistic nameplate replacement with WA by using my current target bar coloring code by replacing "target" to "nameplate":
function(_, r, g, b)
if (UnitIsPlayer("target")) then
local c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
return c.r, c.g, c.b
elseif UnitExists("target") then
if UnitIsTapDenied("target") and not UnitCanAttack("player", "target") then
return 0.5, 0.5, 0.5
end
local reaction = UnitReaction("target", "player")
local colors = aura_env.colors
if reaction < 4 or UnitThreatSituation("player", "target") then
reaction = "HOSTILE"
elseif reaction == 4 then
reaction = "NEUTRAL"
else
reaction = "FRIENDLY"
end
return colors[reaction].r, colors[reaction].g, colors[reaction].b
end
return r, g, b
end
However, it doesn't work and just returns my Foreground Color... is this possible with WA or am I reaching too far and should just settle for single color nameplates? Any help appreciated and thank you!
