mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
fix(Core/Combat): Creatures should evade if its only victim is teleporting to other map (#7975)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user