Mercurial > wow > wowdb-profiler
diff Main.lua @ 162:ef88920c634b 1.0.18
Removed hard-coded NPC IDs.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Sun, 07 Oct 2012 01:31:04 -0500 |
parents | 7c01f8f3b709 |
children | b5ced741f9e6 |
line wrap: on
line diff
--- a/Main.lua Sun Oct 07 01:29:51 2012 -0500 +++ b/Main.lua Sun Oct 07 01:31:04 2012 -0500 @@ -165,13 +165,6 @@ _G.print(...) end -local SHA_OF_ANGER_ID = 60491 -local GALLEON_ID = 62346 - -local function IsHardCodedNPC(unit_id) - return unit_id == SHA_OF_ANGER_ID or unit_id == GALLEON_ID -end - local ActualCopperCost do @@ -803,7 +796,7 @@ end local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) - if not unit_idnum or (unit_type ~= private.UNIT_TYPES.NPC and not IsHardCodedNPC(unit_idnum)) then + if not unit_idnum or unit_type ~= private.UNIT_TYPES.NPC then return end current_target_id = unit_idnum @@ -990,7 +983,7 @@ end local source_type, source_id = ParseGUID(source_guid) - if not source_id or (source_type ~= private.UNIT_TYPES.NPC and not IsHardCodedNPC(source_id)) then + if not source_id or source_type ~= private.UNIT_TYPES.NPC then return end