Core/Unit: send npcs home after fear runs out

Port From (https://github.com/TrinityCore/TrinityCore/commit/6830d883adcec99e288d594fa1bd7cf9577c5b7d)
This commit is contained in:
hondacrx
2022-04-28 09:38:56 -04:00
parent eb32529e9c
commit c15577587f
@@ -1308,6 +1308,8 @@ namespace Game.Entities
GetMotionMaster().Remove(MovementGeneratorType.Fleeing);
if (GetVictim() != null)
SetTarget(GetVictim().GetGUID());
if (!IsPlayer() && !IsInCombat())
GetMotionMaster().MoveTargetedHome();
}
}