From f3c68ec779d11830f52b91c48af73b09c740efd2 Mon Sep 17 00:00:00 2001 From: g4m3r7ag Date: Wed, 26 Jan 2022 01:18:32 -0500 Subject: [PATCH] secureposthook testing --- PolloxsDailyQuestTracker/DailyQuestTracker.lua | 8 ++++---- PolloxsDailyQuestTracker/timer.lua | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/PolloxsDailyQuestTracker/DailyQuestTracker.lua b/PolloxsDailyQuestTracker/DailyQuestTracker.lua index 4d057b5..5666e77 100644 --- a/PolloxsDailyQuestTracker/DailyQuestTracker.lua +++ b/PolloxsDailyQuestTracker/DailyQuestTracker.lua @@ -474,16 +474,16 @@ function Main.OnAddOnLoaded(event, addonName) if addonName == Main.name then EVENT_MANAGER:UnregisterForEvent(Main.name, EVENT_ADD_ON_LOADED) - SecurePostHook(INTERACTION, "UpdateShadowyConnectionsOnTimeComplete", function(self, control, data) + SecurePostHook(INTERACTION, "UpdateShadowyConnectionsOnTimeComplete", function() local timeRemaining = GetTimeToShadowyConnectionsResetInSeconds() if timeRemaining <= 0 then - d("UpdateShadowyConnectionsOnTimeComplete") + d("UpdateShadowyConnectionsOnTimeComplete") end end) - SecurePostHook(INTERACTION, "UpdateShadowyConnectionsChatterOption", function(self, control, data) + SecurePostHook(INTERACTION, "UpdateShadowyConnectionsChatterOption", function() local timeRemaining = GetTimeToShadowyConnectionsResetInSeconds() if timeRemaining <= 0 then - d("UpdateShadowyConnectionsChatterOption") + d("UpdateShadowyConnectionsChatterOption") end end) diff --git a/PolloxsDailyQuestTracker/timer.lua b/PolloxsDailyQuestTracker/timer.lua index 4f5d856..168c9ff 100644 --- a/PolloxsDailyQuestTracker/timer.lua +++ b/PolloxsDailyQuestTracker/timer.lua @@ -73,7 +73,8 @@ function Timer:resetBequeatherTimer() if IsSkillAbilityPurchased(5, 1, 4) ~= true then self.questTimers[TIMER_TYPE.BEQUEATHER] = "na" else - Timer:resetTimer(TIMER_TYPE.BEQUEATHER, GetTimeToShadowyConnectionsResetInSeconds()) +-- Timer:resetTimer(TIMER_TYPE.BEQUEATHER, GetTimeToShadowyConnectionsResetInSeconds()) + d("GetTimeToShadowyConnectionsResetInSeconds") end end