# HG changeset patch # User MMOSimca # Date 1420023450 18000 # Node ID 0825513e6af1f685be76a802588e8b3b52155440 # Parent cf7ed1551bcf5d6a7422534da900428c65075bcc Fixed bugged conditional statement for item containers with instant loot. diff -r cf7ed1551bcf -r 0825513e6af1 Main.lua --- 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)