Skip to content

Commit

Permalink
secureposthook testing
Browse files Browse the repository at this point in the history
  • Loading branch information
g4m3r7ag committed Jan 26, 2022
1 parent 351276f commit f3c68ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions PolloxsDailyQuestTracker/DailyQuestTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion PolloxsDailyQuestTracker/timer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f3c68ec

Please sign in to comment.