1
0
Fork 0

Make sure Valor Points always display a number instead of a blank.

This commit is contained in:
Andrew Tomaka 2011-09-06 12:23:46 -04:00
parent 0f35058848
commit 472a26ec14

View file

@ -95,12 +95,12 @@ function core:UpdateChores()
core:ResetInstances()
core:ResetValorPoints()
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
local realm = GetRealmName()
local name = UnitName('player')
local vpReset = core:GetNextVPReset()
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
--store Valor Points
if vpReset ~= nil then
self.db.global[realm][name].valorPoints = {}
@ -231,6 +231,9 @@ local function anchor_OnEnter(self)
local valorPoints, valorPointColor
valorPoints = self.db.global[realm][name].valorPoints.points
if valorPoints == nil then
valorPoints = 0
end
if valorPoints == 980 then
valorPointColor = flagColors['red']
else