From 64af7e3bc29b26cce853c98f7ee57feac46ac619 Mon Sep 17 00:00:00 2001 From: atomaka Date: Tue, 18 Oct 2011 14:15:38 -0400 Subject: [PATCH] Make sure that vpResetTime is refreshed when the UI is reloaded --- ChoreTracker.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index 9dac6bc..31a5515 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -215,6 +215,8 @@ function core:OnEnable() -- Register events if self.character.level == CURRENT_MAX_LEVEL then + self:RegisterEvent('PLAYER_ENTERING_WORLD') + self:RegisterEvent('CALENDAR_UPDATE_EVENT_LIST') self:RegisterEvent('LFG_UPDATE_RANDOM_INFO') @@ -236,6 +238,10 @@ end --[[ EVENTS ]]-- +function core:PLAYER_ENTERING_WORLD() + self.vpResetTime = core:FindLockout(Z['Baradin Hold']) +end + function core:CALENDAR_UPDATE_EVENT_LIST() self.vpResetTime = core:FindLockout(Z['Baradin Hold']) end