Mercurial > wow > wowdb-profiler
diff Main.lua @ 407:0825513e6af1
Fixed bugged conditional statement for item containers with instant loot.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Wed, 31 Dec 2014 05:57:30 -0500 |
parents | d65875caafd6 |
children | da20cca2ddc6 |
line wrap: on
line diff
--- a/Main.lua Mon Dec 22 00:07:29 2014 -0500 +++ b/Main.lua Wed Dec 31 05:57:30 2014 -0500 @@ -590,7 +590,7 @@ current_action.loot_label = "contains" -- For items that open instantly with no spell cast - if (not _G.GetNumLootItems()) and (private.CONTAINER_ITEM_ID_LIST[item_id] == true) then + if _G.GetNumLootItems() == 0 and private.CONTAINER_ITEM_ID_LIST[item_id] == true then ClearChatLootData() Debug("HandleItemUse: Beginning chat-based loot timer for item with ID %d.", item_id) chat_loot_timer_handle = C_Timer.NewTimer(1, ClearChatLootData)