Core/AI: Finally move the "is creature engaged" flag to be a property of the creature AI, where it honestly always belonged.

Port From (https://github.com/TrinityCore/TrinityCore/commit/c13d83796f7b2111c5dcf8546bdd84eccd232ae3)
This commit is contained in:
hondacrx
2022-01-01 17:05:29 -05:00
parent 9b3fe829d6
commit 2842cc9c91
13 changed files with 142 additions and 71 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ namespace Game.AI
{
me.GetMotionMaster().MoveIdle();
me.CombatStop(true);
me.GetThreatManager().NotifyDisengaged();
EngagementOver();
return;
}
@@ -56,7 +56,7 @@ namespace Game.AI
me.RemoveAllAuras();
me.CombatStop(true);
me.GetThreatManager().NotifyDisengaged();
EngagementOver();
me.GetMotionMaster().MoveTargetedHome();
}