1
0
Fork 0

Store the time an instance should reset.

This commit is contained in:
Andrew Tomaka 2011-08-21 12:48:18 -04:00
parent 8cd87d2029
commit 917b7a81fc

View file

@ -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