Mercurial > wow > askmrrobot
comparison TeamOptimizer.lua @ 103:ed7ffc8d9936
tweak to try and deal with containers in team optimizer
| author | yellowfive |
|---|---|
| date | Thu, 03 Nov 2016 12:57:37 -0700 |
| parents | e0ddd02d6555 |
| children |
comparison
equal
deleted
inserted
replaced
| 102:efa3f2fedac5 | 103:ed7ffc8d9936 |
|---|---|
| 808 | 808 |
| 809 -- guid of the unit being looted | 809 -- guid of the unit being looted |
| 810 local npcGuid = UnitGUID("target") | 810 local npcGuid = UnitGUID("target") |
| 811 if not npcGuid then | 811 if not npcGuid then |
| 812 -- this could wack shit out... but no raid bosses drop loot from containers right now, so should be fine | 812 -- this could wack shit out... but no raid bosses drop loot from containers right now, so should be fine |
| 813 npcGuid = "container" | 813 npcGuid = "container" .. time() |
| 814 end | 814 end |
| 815 | 815 |
| 816 -- if we already have loot data for this unit, then we can ignore | 816 -- if we already have loot data for this unit, then we can ignore |
| 817 if Amr.db.char.TeamOpt.LootGuid == npcGuid then return end | 817 if Amr.db.char.TeamOpt.LootGuid == npcGuid then return end |
| 818 | 818 |
