Quantcast WoWInterface - View Single Post - Getting error spammed from a small addon. Can anyone help?
View Single Post
09-21-15, 12:04 AM   #3
Lesteryoung
A Cliff Giant
Join Date: Aug 2015
Posts: 76
Like this?

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