Only store Valor Points if level is 85.
This commit is contained in:
parent
704bd43c4c
commit
c01bc8693a
1 changed files with 5 additions and 2 deletions
|
@ -19,7 +19,10 @@ end
|
||||||
function core:StoreValorPoints()
|
function core:StoreValorPoints()
|
||||||
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
|
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
|
||||||
local name = UnitName('player')
|
local name = UnitName('player')
|
||||||
|
local level = UnitLevel('player')
|
||||||
|
|
||||||
self.db.profile.valorPoints[name] = earnedThisWeek
|
if(level == 85) then
|
||||||
print('Storing',earnedThisWeek,'for',name)
|
self.db.profile.valorPoints[name] = earnedThisWeek
|
||||||
|
print('Storing',earnedThisWeek,'for',name)
|
||||||
|
end
|
||||||
end
|
end
|
Loading…
Reference in a new issue