1
0
Fork 0

Guarantee instance update by requesting information and then updating when we are told it is ready.

This commit is contained in:
Andrew Tomaka 2011-09-20 12:57:51 -04:00
parent c15bb5c8d5
commit 4f7dce48b5

View file

@ -63,7 +63,7 @@ function core:OnInitialize()
if level == 85 then
self:RegisterEvent('CALENDAR_UPDATE_EVENT_LIST','GetNextVPReset')
self:RegisterEvent('UPDATE_INSTANCE_INFO', 'UpdateChores')
self:RegisterEvent('CHAT_MSG_CURRENCY', 'UpdateChores')
self:RegisterEvent('CHAT_MSG_CURRENCY', 'PrepareUpdate')
end
-- Get calendar events information
@ -155,6 +155,10 @@ function core:OnEnable()
ACD:AddToBlizOptions('ChoreTracker', 'ChoreTracker')
end
function core:PrepareUpdate()
GetSavedInstanceInfo()
end
function core:UpdateChores()
-- Reset data if necessary
core:ResetInstances()