Core/Gameobjects: Fix fishing and looting specific chests which were bugged because of revision 044e466d75.

Fixes issue #5116.

--HG--
branch : trunk
This commit is contained in:
Liberate
2010-12-14 15:02:42 +01:00
parent 48b234022f
commit 6be8446053
+1 -1
View File
@@ -8329,7 +8329,7 @@ void Player::SendLoot(uint64 guid, LootType loot_type)
// not check distance for GO in case owned GO (fishing bobber case, for example)
// And permit out of range GO with no owner in case fishing hole
if (!go || (loot_type != LOOT_FISHINGHOLE && (loot_type != LOOT_FISHING || go->GetOwnerGUID() != GetGUID()) && !go->IsWithinDistInMap(this,INTERACTION_DISTANCE)) || go->GetRespawnTime())
if (!go || (loot_type != LOOT_FISHINGHOLE && (loot_type != LOOT_FISHING || go->GetOwnerGUID() != GetGUID()) && !go->IsWithinDistInMap(this,INTERACTION_DISTANCE)) || (loot_type == LOOT_CORPSE && go->GetRespawnTime() && go->isSpawnedByDefault()))
{
SendLootRelease(guid);
return;