# HG changeset patch # User James D. Callahan III # Date 1343659844 18000 # Node ID e84a1e960bed2efa693da5eca9ef7bdc89a8c136 # Parent 3f7a12a9163c445f851904a3e6bb6f2e4adf7866 Change method of extracting ID from GUID diff -r 3f7a12a9163c -r e84a1e960bed Main.lua --- a/Main.lua Thu Jul 26 16:36:29 2012 -0500 +++ b/Main.lua Mon Jul 30 09:50:44 2012 -0500 @@ -223,9 +223,8 @@ local unit_type = _G.bit.band(tonumber(guid:sub(1, 5)), UNIT_TYPE_BITMASK) if unit_type ~= types.PLAYER and unit_type ~= types.PET then - return unit_type, tonumber(guid:sub(-12, -9), 16) + return unit_type, tonumber(guid:sub(6, 10), 16) end - return unit_type end end -- do-block