Mercurial > wow > wowdb-profiler
changeset 183:1078a6d1c4c9
Move GUID check to after RAID_FINDER_BOSS_IDS check; we only care about targeting for reputation gains - Raid Finder bosses should be recorded regardless.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Sun, 11 Nov 2012 16:43:15 -0600 |
parents | 5d166590440e |
children | 5117c75a47cb |
files | Main.lua |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Thu Nov 08 09:26:25 2012 -0600 +++ b/Main.lua Sun Nov 11 16:43:15 2012 -0600 @@ -1173,10 +1173,6 @@ RecordNPCSpell(sub_event, source_guid, source_name, source_flags, dest_guid, dest_name, dest_flags, spell_id, spell_name) end, UNIT_DIED = function(sub_event, source_guid, source_name, source_flags, dest_guid, dest_name, dest_flags, spell_id, spell_name) - if dest_guid ~= _G.UnitGUID("target") then - Debug("Killed unit was not player target.") - return - end local unit_type, unit_idnum = ParseGUID(dest_guid) if not unit_idnum or not UnitTypeIsNPC(unit_type) then @@ -1198,6 +1194,11 @@ else Debug(("%s: Killed NPC %s (ID: %d) is not in boss list."):format(sub_event, dest_name, unit_idnum)) end + + if dest_guid ~= _G.UnitGUID("target") then + ClearKilledNPC() + return + end killed_npc_id = unit_idnum WDP:ScheduleTimer(ClearKilledNPC, 0.1) end,