1
0
Fork 0

Only store Valor Points if level is 85.

This commit is contained in:
Andrew Tomaka 2011-08-21 00:03:50 -04:00
parent 704bd43c4c
commit c01bc8693a

View file

@ -19,7 +19,10 @@ end
function core:StoreValorPoints()
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
local name = UnitName('player')
local level = UnitLevel('player')
self.db.profile.valorPoints[name] = earnedThisWeek
print('Storing',earnedThisWeek,'for',name)
if(level == 85) then
self.db.profile.valorPoints[name] = earnedThisWeek
print('Storing',earnedThisWeek,'for',name)
end
end