diff options
| author | Liberate <none@none> | 2010-12-14 03:58:59 +0100 |
|---|---|---|
| committer | Liberate <none@none> | 2010-12-14 03:58:59 +0100 |
| commit | 09f4eb9e1c65814dea4cc3d6547fe4daabf3767f (patch) | |
| tree | dfe1c2d04526315f9d650012806045e556b5cf4a | |
| parent | 2d8e73fab505599b1ec3206a79628d72a147b301 (diff) | |
Core/Gameobjects: Make a chest not lootable when it still has a respawn time, to avoid cheating using third-party software.
--HG--
branch : trunk
| -rwxr-xr-x | src/server/game/Entities/Player/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index d32ec80fe7b..ad3bc79f3ce 100755 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -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; |
