aboutsummaryrefslogtreecommitdiff
path: root/src/game/LootHandler.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-21 19:45:49 -0600
committermegamage <none@none>2008-11-21 19:45:49 -0600
commitfa667cf4507e5635d597b878119ce20f2836cc8c (patch)
tree34a1b3a70db2d8ba86be680bb341f1e499b0d672 /src/game/LootHandler.cpp
parentb2ba78e57a7c1895d1bacf950a3705eedd01c256 (diff)
*Alterac Valley. By Bogie and Balrok. Note: some core contents are modified. Will fix them later. Some sql are disabled because of possible conflict with offical DB. Use them at your own risk.
--HG-- branch : trunk
Diffstat (limited to 'src/game/LootHandler.cpp')
-rw-r--r--src/game/LootHandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/LootHandler.cpp b/src/game/LootHandler.cpp
index 4894b3aabeb..a4a8a7a1f01 100644
--- a/src/game/LootHandler.cpp
+++ b/src/game/LootHandler.cpp
@@ -70,6 +70,16 @@ void WorldSession::HandleAutostoreLootItemOpcode( WorldPacket & recv_data )
loot = &pItem->loot;
}
+ else if (IS_CORPSE_GUID(lguid))
+ {
+ Corpse *bones = ObjectAccessor::GetCorpse(*player, lguid);
+ if (!bones)
+ {
+ player->SendLootRelease(lguid);
+ return;
+ }
+ loot = &bones->loot;
+ }
else
{
Creature* pCreature =