comparison Main.lua @ 382:8d63f8348496

Revert change to ignore loot toasts with a source of '3'. Apparently they're sometimes useful still.
author MMOSimca <MMOSimca@gmail.com>
date Thu, 11 Dec 2014 01:33:31 -0500
parents cc4a579b26d1
children d3e8a11a21ea
comparison
equal deleted inserted replaced
381:cc4a579b26d1 382:8d63f8348496
1286 1286
1287 function WDP:SHOW_LOOT_TOAST(event_name, loot_type, item_link, quantity, spec_ID, sex_ID, is_personal, loot_source) 1287 function WDP:SHOW_LOOT_TOAST(event_name, loot_type, item_link, quantity, spec_ID, sex_ID, is_personal, loot_source)
1288 if not loot_type or (loot_type ~= "item" and loot_type ~= "money" and loot_type ~= "currency") then 1288 if not loot_type or (loot_type ~= "item" and loot_type ~= "money" and loot_type ~= "currency") then
1289 Debug("%s: loot_type is %s. Item link is %s, and quantity is %d.", event_name, loot_type, item_link, quantity) 1289 Debug("%s: loot_type is %s. Item link is %s, and quantity is %d.", event_name, loot_type, item_link, quantity)
1290 return 1290 return
1291 -- 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
1292 -- Ignoring this event when the loot_source is 'faked' should drastically reduce the chances of loot data being misrecorded
1293 elseif not loot_source or loot_source == 3 then
1294 Debug("%s: Aborting attempts to handle loot toast because it has a loot_source of 3 or nil.", event_name)
1295 end 1291 end
1296 local container_id = private.loot_toast_container_id 1292 local container_id = private.loot_toast_container_id
1297 local npc_id = private.raid_boss_id 1293 local npc_id = private.raid_boss_id
1298 1294
1299 -- Need information on the most recent args, so using this complete debug statement for now 1295 -- Need information on the most recent args, so using this complete debug statement for now