Commit 2455b73e authored by Robin Schoonover's avatar Robin Schoonover

Handle condition where we don't have a unit on SetUnit

parent 12cf3013
......@@ -51,8 +51,11 @@ end)
HookTipScript("OnTooltipSetUnit", function(self)
local name, unit = self:GetUnit()
local guid = UnitGUID(unit)
if not unit then
local guid = UnitGUID(unit)
local utype = strsub(guid, 5, 5)
if utype == "1" then
-- world object
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment