From 423accf04b83ddc0e7fe3de08b5d0a9b01b9f1db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Sun, 9 Feb 2020 23:27:18 +0100 Subject: [PATCH] Make sure that last scan value is correct --- RECrystallize.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RECrystallize.lua b/RECrystallize.lua index 88a3c0a..b415818 100644 --- a/RECrystallize.lua +++ b/RECrystallize.lua @@ -238,6 +238,10 @@ function RE:OnEvent(self, event, ...) self:RegisterEvent("CHAT_MSG_GUILD") end + if RE.Config.LastScan > time() then + RE.Config.LastScan = time() + end + _G.GameTooltip:HookScript("OnTooltipSetItem", function(self) RE:TooltipAddPrice(self); RE.TooltipCustomCount = -1 end) _G.GameTooltip:HookScript("OnTooltipCleared", function(_) RE.RecipeLock = false end) hooksecurefunc("BattlePetToolTip_Show", function(speciesID, level, breedQuality, maxHealth, power, speed) RE:TooltipPetAddPrice(sFormat("|cffffffff|Hbattlepet:%s:%s:%s:%s:%s:%s:0000000000000000:0|h[XYZ]|h|r", speciesID, level, breedQuality, maxHealth, power, speed)) end)