Skip to content

Commit

Permalink
Fix some conditional item not show in loot windows.
Browse files Browse the repository at this point in the history
Also add a log to help debuging.
  • Loading branch information
Cyberium committed Sep 23, 2015
1 parent cb93bc9 commit 56bfffd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/LootMgr.cpp
Expand Up @@ -442,7 +442,7 @@ LootSlotType LootItem::GetSlotTypeForSharedLoot(Player const* player, Loot const
if (!lootedBy.empty())
return MAX_LOOT_SLOT_TYPE; // a not free for all item should not be looted more than once

if (lootItemType != LOOTITEM_TYPE_NORMAL)
if (lootItemType == LOOTITEM_TYPE_QUEST)
{
if (loot->m_lootMethod == NOT_GROUP_TYPE_LOOT || loot->m_lootMethod == FREE_FOR_ALL)
return LOOT_SLOT_OWNER;
Expand Down Expand Up @@ -2031,7 +2031,10 @@ bool Loot::GetLootContentFor(Player* player, ByteBuffer& buffer)
LootItem* lootItem = *lootItemItr;
LootSlotType slot_type = lootItem->GetSlotTypeForSharedLoot(player, this);
if (slot_type >= MAX_LOOT_SLOT_TYPE)
{
sLog.outString("Item cannot send> itemid(%u) in slot (%u)!", lootItem->itemId, uint32(lootItem->lootSlot));
continue;
}

buffer << uint8(lootItem->lootSlot);
buffer << *lootItem;
Expand Down

0 comments on commit 56bfffd

Please sign in to comment.