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

@@ -14769,7 +14769,7 @@ void Unit::CleanupBeforeRemoveFromMap(bool finalCleanup)
CombatStop();
ClearComboPointHolders();
DeleteThreatList();
getHostileRefMgr().deleteReferences();
getHostileRefMgr().deleteReferences(true);
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
}