diff --git a/src/game/LootHandler.cpp b/src/game/LootHandler.cpp index cb4f2b8e9..72bd8d279 100644 --- a/src/game/LootHandler.cpp +++ b/src/game/LootHandler.cpp @@ -430,6 +430,10 @@ void WorldSession::DoLootRelease(ObjectGuid lguid) if(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); break; } @@ -446,7 +450,10 @@ void WorldSession::DoLootRelease(ObjectGuid lguid) { // must be destroyed only if no loot if (pItem->loot.isLooted()) + { + pItem->SetLootState(ITEM_LOOT_REMOVED); player->DestroyItem( pItem->GetBagSlot(),pItem->GetSlot(), true); + } break; } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 0e52df6e4..686d5310c 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10675" + #define REVISION_NR "10676" #endif // __REVISION_NR_H__