diff --git a/core.lua b/core.lua index 993a475..d4b64e0 100755 --- a/core.lua +++ b/core.lua @@ -35,17 +35,11 @@ local colorlist = { ['contested'] = "ffb200", } local function pvpColor(txt) - local col - local pvpType, isFFA, faction = GetZonePVPInfo() + local pvpType = GetZonePVPInfo() if(colorlist[pvpType]) then - col = colorlist[pvpType] - else - col = "ffd100" - --ffecc1 from ZoneText.lua, the one in the middle of the screen when changing areas - --ffd100 from MiniMap.lua, which uses NORMAL_FONT_COLOR - --Which one is "more correct"? + return child:colorize(txt, colorlist[pvpType]) end - return child:colorize(txt, col) + return txt end local function OnDataUpdate() setPlayerCoords()