# HG changeset patch # User MMOSimca # Date 1417700414 18000 # Node ID 8ca629ec7f57f3541ca490e5c5dd68d3bf4698a6 # Parent c78fe36fea84d9c96ff3655f65451b791d0a0259 Loot toasts with a source of '3' are now ignored, increasing loot data reliability! diff -r c78fe36fea84 -r 8ca629ec7f57 Main.lua --- 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