Core/Creatures: Allow flagging creatures to not clear their tap list when evading

Port From (https://github.com/TrinityCore/TrinityCore/commit/6e309ed17ff448b971f206c7ea7174c736230299)
This commit is contained in:
hondacrx
2023-03-23 07:04:20 -04:00
parent bd437fc87a
commit 5d0d9822e8
5 changed files with 21 additions and 3 deletions
+4 -1
View File
@@ -294,7 +294,10 @@ namespace Game.AI
// sometimes bosses stuck in combat?
me.CombatStop(true);
me.SetTappedBy(null);
if (!me.IsTapListNotClearedOnEvade())
me.SetTappedBy(null);
me.ResetPlayerDamageReq();
me.SetLastDamagedTime(0);
me.SetCannotReachTarget(false);