Mercurial > wow > wowdb-profiler
comparison Main.lua @ 106:64d1e76e69e5 1.0.3
State fixes.
| author | James D. Callahan III <jcallahan@curse.com> |
|---|---|
| date | Wed, 05 Sep 2012 11:11:27 -0500 |
| parents | f9c81739cfe6 |
| children | ab41dfac7ca9 |
comparison
equal
deleted
inserted
replaced
| 105:f9c81739cfe6 | 106:64d1e76e69e5 |
|---|---|
| 1000 | 1000 |
| 1001 -- Prevent opening the same loot window multiple times from recording data multiple times. | 1001 -- Prevent opening the same loot window multiple times from recording data multiple times. |
| 1002 local loot_guid_registry = {} | 1002 local loot_guid_registry = {} |
| 1003 | 1003 |
| 1004 function WDP:LOOT_OPENED(event_name) | 1004 function WDP:LOOT_OPENED(event_name) |
| 1005 if action_data.looting then | 1005 if action_data.looting or not action_data.type then |
| 1006 return | 1006 return |
| 1007 end | |
| 1008 | |
| 1009 if not action_data.type then | |
| 1010 action_data.type = AF.NPC | |
| 1011 end | 1007 end |
| 1012 local verify_func = LOOT_VERIFY_FUNCS[action_data.type] | 1008 local verify_func = LOOT_VERIFY_FUNCS[action_data.type] |
| 1013 local update_func = LOOT_UPDATE_FUNCS[action_data.type] | 1009 local update_func = LOOT_UPDATE_FUNCS[action_data.type] |
| 1014 | 1010 |
| 1015 if not verify_func or not update_func then | 1011 if not verify_func or not update_func then |
| 1063 | 1059 |
| 1064 for guid in pairs(guids_used) do | 1060 for guid in pairs(guids_used) do |
| 1065 loot_guid_registry[guid] = true | 1061 loot_guid_registry[guid] = true |
| 1066 end | 1062 end |
| 1067 update_func() | 1063 update_func() |
| 1064 table.wipe(action_data) | |
| 1068 end | 1065 end |
| 1069 end -- do-block | 1066 end -- do-block |
| 1070 | 1067 |
| 1071 | 1068 |
| 1072 function WDP:MAIL_SHOW(event_name) | 1069 function WDP:MAIL_SHOW(event_name) |
