fix(Core/Combat): Creatures should evade if its only victim is teleporting to other map (#7975)

This commit is contained in:
UltraNix
2021-09-21 00:05:45 +02:00
committed by GitHub
parent 73bac1777c
commit 1bf4f54b32
6 changed files with 22 additions and 6 deletions

View File

@@ -524,7 +524,7 @@ void WorldSession::LogoutPlayer(bool save)
//FIXME: logout must be delayed in case lost connection with client in time of combat
if (_player->GetDeathTimer())
{
_player->getHostileRefMgr().deleteReferences();
_player->getHostileRefMgr().deleteReferences(true);
_player->BuildPlayerRepop();
_player->RepopAtGraveyard();
}