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()
|
||||
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
|
||||
local name = UnitName('player')
|
||||
local level = UnitLevel('player')
|
||||
|
||||
if(level == 85) then
|
||||
self.db.profile.valorPoints[name] = earnedThisWeek
|
||||
print('Storing',earnedThisWeek,'for',name)
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue