Originally Posted by keid
Im using blizzard raid frames.
|
This solution:
Code:
hooksecurefunc("CompactUnitFrame_UpdateName", function(frame)
local playerName = GetUnitName(frame.unit, true)
if playerName then
_, class = UnitClass(frame.unit)
if class == "PRIEST" then
frame.name:SetVertexColor(0, 0, 0)
end
end
end)