comparison 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
comparison
equal deleted inserted replaced
406:cf7ed1551bcf 407:0825513e6af1
588 current_action.target_type = AF.ITEM 588 current_action.target_type = AF.ITEM
589 current_action.identifier = item_id 589 current_action.identifier = item_id
590 current_action.loot_label = "contains" 590 current_action.loot_label = "contains"
591 591
592 -- For items that open instantly with no spell cast 592 -- For items that open instantly with no spell cast
593 if (not _G.GetNumLootItems()) and (private.CONTAINER_ITEM_ID_LIST[item_id] == true) then 593 if _G.GetNumLootItems() == 0 and private.CONTAINER_ITEM_ID_LIST[item_id] == true then
594 ClearChatLootData() 594 ClearChatLootData()
595 Debug("HandleItemUse: Beginning chat-based loot timer for item with ID %d.", item_id) 595 Debug("HandleItemUse: Beginning chat-based loot timer for item with ID %d.", item_id)
596 chat_loot_timer_handle = C_Timer.NewTimer(1, ClearChatLootData) 596 chat_loot_timer_handle = C_Timer.NewTimer(1, ClearChatLootData)
597 InitializeCurrentLoot() 597 InitializeCurrentLoot()
598 end 598 end