Load the valor point reset date from the calendar as soon as possible.
This commit is contained in:
parent
af150e321f
commit
94a759b92d
1 changed files with 3 additions and 3 deletions
|
@ -133,6 +133,8 @@ function core:OnEnable()
|
||||||
|
|
||||||
self:RegisterChatCommand('ct', 'ViewChores');
|
self:RegisterChatCommand('ct', 'ViewChores');
|
||||||
self:RegisterEvent('UPDATE_INSTANCE_INFO', 'UpdateChores')
|
self:RegisterEvent('UPDATE_INSTANCE_INFO', 'UpdateChores')
|
||||||
|
self:RegisterEvent('CALENDAR_UPDATE_EVENT_LIST', 'UpdateChores')
|
||||||
|
LoadAddOn("Blizzard_Calendar")
|
||||||
end
|
end
|
||||||
|
|
||||||
function core:ViewChores()
|
function core:ViewChores()
|
||||||
|
@ -247,9 +249,7 @@ function core:GetNextVPReset()
|
||||||
resetDate.hour = resetTime.hour
|
resetDate.hour = resetTime.hour
|
||||||
resetDate.min = resetTime.min
|
resetDate.min = resetTime.min
|
||||||
resetDate.sec = resetTime.sec
|
resetDate.sec = resetTime.sec
|
||||||
|
|
||||||
return time(resetDate)
|
return time(resetDate)
|
||||||
else
|
|
||||||
print('resetDate not set')
|
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in a new issue