Quantcast

fix score board

yaroot [11-11-11 - 03:56]
fix score board
Filename
battlefield.lua
diff --git a/battlefield.lua b/battlefield.lua
index 807eb5e..23c10a1 100644
--- a/battlefield.lua
+++ b/battlefield.lua
@@ -11,14 +11,13 @@ hooksecurefunc('WorldStateScoreFrame_Update', function()
         -- faction: Battlegrounds: Horde = 0, Alliance = 1 / Arenas: Green Team = 0, Yellow Team = 1
         if name then
             local n, r = strsplit('-', name, 2)
-            --print(name, n, r, class, classToken)
             n = ycc.classColor[class] .. n .. '|r'

-            if (n == ycc.myName) and (not r) then
+            if(name == ycc.myName) then
                 n = '> ' .. n .. ' <'
             end

-            if r then
+            if(r) then
                 local color
                 if inArena then
                     if faction == 1 then