Mercurial > wow > wowdb-profiler
comparison Main.lua @ 241:750195edac78 5.2.0-4
Fixed error in UNIT_DIED processing.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Sat, 09 Mar 2013 19:39:22 -0600 |
parents | e9a81d9a6cc5 |
children | d7ed64be54b8 |
comparison
equal
deleted
inserted
replaced
240:319d5f3ff037 | 241:750195edac78 |
---|---|
1226 end, | 1226 end, |
1227 UNIT_DIED = function(sub_event, source_guid, source_name, source_flags, dest_guid, dest_name, dest_flags, spell_id, spell_name) | 1227 UNIT_DIED = function(sub_event, source_guid, source_name, source_flags, dest_guid, dest_name, dest_flags, spell_id, spell_name) |
1228 local unit_type, unit_idnum = ParseGUID(dest_guid) | 1228 local unit_type, unit_idnum = ParseGUID(dest_guid) |
1229 | 1229 |
1230 if not unit_idnum or not UnitTypeIsNPC(unit_type) then | 1230 if not unit_idnum or not UnitTypeIsNPC(unit_type) then |
1231 Debug(("%s: %s is not an NPC, or has no ID."):format(sub_event, dest_name)) | 1231 Debug(("%s: %s is not an NPC, or has no ID."):format(sub_event, dest_name or _G.UNKNOWN)) |
1232 ClearKilledNPC() | 1232 ClearKilledNPC() |
1233 ClearKilledBossID() | 1233 ClearKilledBossID() |
1234 private.harvesting = nil | 1234 private.harvesting = nil |
1235 return | 1235 return |
1236 end | 1236 end |