이름표 이름 뒤에 색깔입히는 lua파일을 다음과 같이 쓰고있는뎅
local frame = CreateFrame("FRAME")
frame:RegisterEvent("GROUP_ROSTER_UPDATE")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")

local function eventHandler(self, event, ...)
if UnitIsPlayer("target") then
c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.b)
end
if UnitIsPlayer("focus") then
c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))]
FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.b)
end
end

frame:SetScript("OnEvent", eventHandler)

for _, BarTextures in pairs({TargetFrameNameBackground, FocusFrameNameBackground}) do
BarTextures:SetTexture("InterfaceTargetingFrameUI-StatusBar")
end

여기서 어느걸 수정해야 상대편이름뒤에만 색깔나오게할수있을까요?
아군은 정상적으로 파란색 바탕이되있고 상대편클릭했을떄만 이름뒤 색깔을 직업색깔로 만들고싶은데..도움주시면 감사하겠습니다 ㅠㅠ