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

@@ -882,7 +882,7 @@ struct ResetNotifier
void Map::RemovePlayerFromMap(Player* player, bool remove)
{
player->getHostileRefMgr().deleteReferences(); // pussywizard: multithreading crashfix
player->getHostileRefMgr().deleteReferences(true); // pussywizard: multithreading crashfix
bool inWorld = player->IsInWorld();
player->RemoveFromWorld();