Mercurial > wow > wowdb-profiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
377:c78fe36fea84 | 378:8ca629ec7f57 |
---|---|
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) | |
1291 end | 1295 end |
1292 local container_id = private.loot_toast_container_id | 1296 local container_id = private.loot_toast_container_id |
1293 local npc_id = private.raid_boss_id | 1297 local npc_id = private.raid_boss_id |
1294 | 1298 |
1295 -- Need information on the most recent args, so using this complete debug statement for now | 1299 -- Need information on the most recent args, so using this complete debug statement for now |