Core/Unit: send npcs home after fear runs out
Port From (https://github.com/TrinityCore/TrinityCore/commit/6830d883adcec99e288d594fa1bd7cf9577c5b7d)
This commit is contained in:
@@ -1308,6 +1308,8 @@ namespace Game.Entities
|
|||||||
GetMotionMaster().Remove(MovementGeneratorType.Fleeing);
|
GetMotionMaster().Remove(MovementGeneratorType.Fleeing);
|
||||||
if (GetVictim() != null)
|
if (GetVictim() != null)
|
||||||
SetTarget(GetVictim().GetGUID());
|
SetTarget(GetVictim().GetGUID());
|
||||||
|
if (!IsPlayer() && !IsInCombat())
|
||||||
|
GetMotionMaster().MoveTargetedHome();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user