View Single Post
01-12-14, 04:52 PM   #15
Simca
An Aku'mai Servant
 
Simca's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2012
Posts: 33
Originally Posted by semlar View Post
I would assume LOOT_OPENED might fire for every corpse in range for AOE loot when it populates the window with their items.

It could very well fire simply from opening the loot window and again when it's populated.

If you know it has the potential to fire multiple times you'll just have to code around that.
Yes, I should able to just use the 'backup' system that reconstructs NPCID/objectID and other variables from GUIDs for NPCs and objects, in a slightly modified form. Though you can't get the itemID of the container from the GUID, the item container will be 'locked' because it is in use, so the addon could scan the inventory for the locked item and get the itemID from that.

Still, I should make a bug report thread about this on the official forums now that I know what is happening (even if I don't know why).
__________________
Assistant admin for MMO-Champion
WoW database file expert - ask me anything
  Reply With Quote