mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10689] Restore some item checkes for temporary loot case.
This commit is contained in:
parent
e219ee99bb
commit
bffc07e4bc
8 changed files with 80 additions and 64 deletions
|
|
@ -418,9 +418,9 @@ void WorldSession::DoLootRelease(ObjectGuid lguid)
|
|||
|
||||
ItemPrototype const* proto = pItem->GetProto();
|
||||
|
||||
// destroy only 5 items from stack in case prospecting and milling
|
||||
switch (pItem->loot.loot_type)
|
||||
{
|
||||
// temporary loot in stacking items, clear loot state, no auto loot move
|
||||
case LOOT_MILLING:
|
||||
case LOOT_PROSPECTING:
|
||||
{
|
||||
|
|
@ -437,6 +437,7 @@ void WorldSession::DoLootRelease(ObjectGuid lguid)
|
|||
player->DestroyItemCount(pItem, count, true);
|
||||
break;
|
||||
}
|
||||
// temporary loot, auto loot move
|
||||
case LOOT_DISENCHANTING:
|
||||
{
|
||||
if (!pItem->loot.isLooted())
|
||||
|
|
@ -446,6 +447,7 @@ void WorldSession::DoLootRelease(ObjectGuid lguid)
|
|||
player->DestroyItem( pItem->GetBagSlot(),pItem->GetSlot(), true);
|
||||
break;
|
||||
}
|
||||
// normal persistence loot
|
||||
default:
|
||||
{
|
||||
// must be destroyed only if no loot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue