# HG changeset patch # User James D. Callahan III # Date 1352673795 21600 # Node ID 1078a6d1c4c95a837659b39f3a7779eef200f852 # Parent 5d166590440e83f3d8cd44c98534d60b71f99261 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. diff -r 5d166590440e -r 1078a6d1c4c9 Main.lua --- 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,