Core/Gameobjects: Make a chest not lootable when it still has a respawn time, to avoid cheating using third-party software.

--HG--
branch : trunk
This commit is contained in:
Liberate
2010-12-14 03:58:59 +01:00
parent 2d8e73fab5
commit 09f4eb9e1c
+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)))
if (!go || (loot_type != LOOT_FISHINGHOLE && (loot_type != LOOT_FISHING || go->GetOwnerGUID() != GetGUID()) && !go->IsWithinDistInMap(this,INTERACTION_DISTANCE)) || go->GetRespawnTime())
{
SendLootRelease(guid);
return;