Scripts/World: update guard scripts

Port From (https://github.com/TrinityCore/TrinityCore/commit/92026abee10325beedede84b07d5154a5a995b52)
This commit is contained in:
hondacrx
2021-02-18 12:45:47 -05:00
parent da273c3a06
commit 077c965c51
3 changed files with 3 additions and 101 deletions
+1 -3
View File
@@ -58,9 +58,7 @@ namespace Game.AI
me.GetThreatManager().ClearAllThreat();
me.CombatStop(true);
// Remove ChaseMovementGenerator from MotionMaster stack list, and add HomeMovementGenerator instead
if (me.GetMotionMaster().GetCurrentMovementGeneratorType() == MovementGeneratorType.Chase)
me.GetMotionMaster().MoveTargetedHome();
me.GetMotionMaster().MoveTargetedHome();
}
public override void JustDied(Unit killer)