mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Loot: Fix an exploit with CMSG_LOOT using non-creature guids which would allow you to loot despawned chests in some cases.
By @Kiddie
This commit is contained in:
@@ -223,7 +223,7 @@ void WorldSession::HandleLootOpcode(WorldPacket& recvData)
|
||||
recvData >> guid;
|
||||
|
||||
// Check possible cheat
|
||||
if (!_player->IsAlive())
|
||||
if (!GetPlayer()->IsAlive() || !IS_CRE_OR_VEH_GUID(guid))
|
||||
return;
|
||||
|
||||
GetPlayer()->SendLoot(guid, LOOT_CORPSE);
|
||||
|
||||
Reference in New Issue
Block a user