changeset 425:5bd49f0b635c

Fixed bug in new SHOW_LOOT_TOAST currency data recording for chat-based loot.
author MMOSimca <MMOSimca@gmail.com>
date Wed, 07 Jan 2015 19:05:01 -0500
parents d06d1716228d
children de0795cfbe56
files Main.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Main.lua	Wed Jan 07 17:32:19 2015 -0500
+++ b/Main.lua	Wed Jan 07 19:05:01 2015 -0500
@@ -1571,7 +1571,7 @@
         GenericLootUpdate("items")
         current_loot = nil
         container_loot_toasting = true -- Do not count further loots until timer expires or another container is opened
-    elseif loot_source and (loot_source == LOOT_SOURCE_ID_REDUNDANT) and chat_loot_timer_handle then
+    elseif loot_source and (loot_source == LOOT_SOURCE_ID_REDUNDANT) and chat_loot_timer_handle and loot_type == "currency" then
         local currency_texture = CurrencyLinkToTexture(item_link)
         if currency_texture and currency_texture ~= "" then
             local container_id = chat_loot_data.identifier -- For faster access, since this is going to be called 9 times in the next 3 lines