diff Main.lua @ 378:8ca629ec7f57 6.0.2-7

Loot toasts with a source of '3' are now ignored, increasing loot data reliability!
author MMOSimca <MMOSimca@gmail.com>
date Thu, 04 Dec 2014 08:40:14 -0500
parents c78fe36fea84
children cc4a579b26d1
line wrap: on
line diff
--- a/Main.lua	Wed Nov 26 08:15:31 2014 -0500
+++ b/Main.lua	Thu Dec 04 08:40:14 2014 -0500
@@ -1288,6 +1288,10 @@
     if not loot_type or (loot_type ~= "item" and loot_type ~= "money" and loot_type ~= "currency") then
         Debug("%s: loot_type is %s. Item link is %s, and quantity is %d.", event_name, loot_type, item_link, quantity)
         return
+    -- loot_source of 3 seems to occur only when it is being 'faked' and the item was actually in the loot window, whereas loot_source of 1 or 10 is real
+    -- Ignoring this event when the loot_source is 'faked' should drastically reduce the chances of loot data being misrecorded
+    elseif not loot_source or loot_source == 3 then
+        Debug("%s: Aborting attempts to handle loot toast because it has a loot_source of 3 or nil.", event_name)
     end
     local container_id = private.loot_toast_container_id
     local npc_id = private.raid_boss_id