Script error in GameTooltipHooks.lua
gaveer opened this issue ยท 4 comments
1x ...nterface\Rarity\Core\GUI\GameTooltipHooks.lua:29: attempt to index field 'db' (a nil value)
[string "@Rarity\Core\GUI\GameTooltipHooks.lua"]:29: in function <...nterface\Rarity\Core\GUI\GameTooltipHooks.lua:27>
[string "=[C]:"]: ?
[string "=[C]:"]: ?
[string "=[C]:"]: ?
[string "=[C]:"]: ?
[string "=[C]:"]: ?
When does this occur? Is it reproducible? It seems like something that could be caused by another addon; have you tried disabling all others to see if it still happens?
-- Game Tooltip hijacking stuff
_G.GameTooltip:HookScript("OnTooltipSetUnit", function(self)
-- If debug mode is on, find NPCID from mouseover target and append it to the tooltip
if R.db.profile.debugMode then
GameTooltip:AddLine("NPCID: " .. R:GetNPCIDFromGUID(UnitGUID("mouseover")), 255, 255, 255)
end
if not R.db or R.db.profile.enableTooltipAdditions == false then
return
end
```
Duplicate of #508 (presumably).