Rarity

Rarity

17M Downloads

Script error in GameTooltipHooks.lua

gaveer opened this issue ยท 4 comments

commented
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]:"]: ?
commented

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?

commented

when i /reload

commented
-- 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
	```
commented

Duplicate of #508 (presumably).