Skip to content

Commit

Permalink
Make sure that last scan value is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Feb 9, 2020
1 parent cf5ebd6 commit 423accf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RECrystallize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 423accf

Please sign in to comment.