mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
Prevent cheating with player loot.
This commit is contained in:
parent
911dbe0b29
commit
e441c5c48c
1 changed files with 3 additions and 0 deletions
|
|
@ -243,6 +243,9 @@ void WorldSession::LogoutPlayer(bool Save)
|
||||||
|
|
||||||
if (_player)
|
if (_player)
|
||||||
{
|
{
|
||||||
|
if (uint64 lguid = GetPlayer()->GetLootGUID())
|
||||||
|
DoLootRelease(lguid);
|
||||||
|
|
||||||
///- If the player just died before logging out, make him appear as a ghost
|
///- If the player just died before logging out, make him appear as a ghost
|
||||||
//FIXME: logout must be delayed in case lost connection with client in time of combat
|
//FIXME: logout must be delayed in case lost connection with client in time of combat
|
||||||
if (_player->GetDeathTimer())
|
if (_player->GetDeathTimer())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue