Skip to content

Commit

Permalink
Fix some conditional item not show in loot windows. Also add a log to…
Browse files Browse the repository at this point in the history
… help debuging.

(based on cmangos/mangos-wotlk@56bfffd)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information
Cyberium authored and xfurry committed Nov 15, 2015
1 parent 204e380 commit e656df7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/LootMgr.cpp
Expand Up @@ -503,7 +503,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 @@ -2097,7 +2097,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 e656df7

Please sign in to comment.