Store the time an instance should reset.
This commit is contained in:
parent
8cd87d2029
commit
917b7a81fc
1 changed files with 5 additions and 2 deletions
|
@ -35,16 +35,19 @@ function core:StoreChores()
|
|||
local level = UnitLevel('player')
|
||||
|
||||
if(level == 85) then
|
||||
--store Valor Points
|
||||
self.db.profile.valorPoints[name] = earnedThisWeek
|
||||
|
||||
--store Saved Instances
|
||||
local savedInstances = GetNumSavedInstances()
|
||||
|
||||
for i = 0, savedInstances do
|
||||
local instanceName,_,instanceReset,_,_,_,_,_,_,_,_,defeatedBosses = GetSavedInstanceInfo(i)
|
||||
|
||||
if trackedInstances[instanceName] == true then
|
||||
if instanceReset > 0 then
|
||||
self.db.profile.lockouts[name][instanceName] = defeatedBosses
|
||||
self.db.profile.lockouts[name][instanceName] = {}
|
||||
self.db.profile.lockouts[name][instanceName].defeatedBosses = defeatedBosses
|
||||
self.db.profile.lockouts[name][instanceName].resetTime = time() + instanceReset
|
||||
else
|
||||
self.db.profile.lockouts[name][instanceName] = nil
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue