mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10676] Fix repeating looting for milling/prospecting.
This commit is contained in:
parent
cb5a666ce3
commit
62c0963f37
2 changed files with 8 additions and 1 deletions
|
|
@ -430,6 +430,10 @@ void WorldSession::DoLootRelease(ObjectGuid lguid)
|
||||||
if(count > 5)
|
if(count > 5)
|
||||||
count = 5;
|
count = 5;
|
||||||
|
|
||||||
|
// reset loot for allow repeat looting if stack > 5
|
||||||
|
pItem->loot.clear();
|
||||||
|
pItem->SetLootState(ITEM_LOOT_REMOVED);
|
||||||
|
|
||||||
player->DestroyItemCount(pItem, count, true);
|
player->DestroyItemCount(pItem, count, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -446,7 +450,10 @@ void WorldSession::DoLootRelease(ObjectGuid lguid)
|
||||||
{
|
{
|
||||||
// must be destroyed only if no loot
|
// must be destroyed only if no loot
|
||||||
if (pItem->loot.isLooted())
|
if (pItem->loot.isLooted())
|
||||||
|
{
|
||||||
|
pItem->SetLootState(ITEM_LOOT_REMOVED);
|
||||||
player->DestroyItem( pItem->GetBagSlot(),pItem->GetSlot(), true);
|
player->DestroyItem( pItem->GetBagSlot(),pItem->GetSlot(), true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10675"
|
#define REVISION_NR "10676"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue