mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/Player): check for existing corpse on respawn (#8112)
This commit is contained in:
@@ -4273,7 +4273,7 @@ void Player::BuildPlayerRepop()
|
||||
|
||||
// the player cannot have a corpse already on current map, only bones which are not returned by GetCorpse
|
||||
WorldLocation corpseLocation = GetCorpseLocation();
|
||||
if (corpseLocation.GetMapId() == GetMapId())
|
||||
if (GetCorpse() && corpseLocation.GetMapId() == GetMapId())
|
||||
{
|
||||
LOG_ERROR("entities.player", "BuildPlayerRepop: player %s (%s) already has a corpse", GetName().c_str(), GetGUID().ToString().c_str());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user