mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-07 04:47:45 +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
|
// the player cannot have a corpse already on current map, only bones which are not returned by GetCorpse
|
||||||
WorldLocation corpseLocation = GetCorpseLocation();
|
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());
|
LOG_ERROR("entities.player", "BuildPlayerRepop: player %s (%s) already has a corpse", GetName().c_str(), GetGUID().ToString().c_str());
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user