comparison Main.lua @ 423:0aac203792c2

Fixed a timer left at the old duration of chat-based loot recording.
author MMOSimca <MMOSimca@gmail.com>
date Wed, 07 Jan 2015 17:29:29 -0500
parents 063309f31455
children d06d1716228d
comparison
equal deleted inserted replaced
422:063309f31455 423:0aac203792c2
604 if any_loot then 604 if any_loot then
605 -- For item containers that open instantly with no spell cast 605 -- For item containers that open instantly with no spell cast
606 if (private.CONTAINER_ITEM_ID_LIST[item_id] == true) and ((not _G.GetNumLootItems()) or (_G.GetNumLootItems() == 0)) then 606 if (private.CONTAINER_ITEM_ID_LIST[item_id] == true) and ((not _G.GetNumLootItems()) or (_G.GetNumLootItems() == 0)) then
607 ClearChatLootData() 607 ClearChatLootData()
608 Debug("HandleItemUse: Beginning chat-based loot timer for item with ID %d.", item_id) 608 Debug("HandleItemUse: Beginning chat-based loot timer for item with ID %d.", item_id)
609 chat_loot_timer_handle = C_Timer.NewTimer(1, ClearChatLootData) 609 chat_loot_timer_handle = C_Timer.NewTimer(1.5, ClearChatLootData)
610 chat_loot_data = chat_loot_data or {} 610 chat_loot_data = chat_loot_data or {}
611 chat_loot_data.identifier = item_id 611 chat_loot_data.identifier = item_id
612 chat_loot_data.sources = {} 612 chat_loot_data.sources = {}
613 -- For normal item containers 613 -- For normal item containers
614 else 614 else