Core/AI: Make charmed creatures follow their owner
Port From (https://github.com/TrinityCore/TrinityCore/commit/144cfc2bcebbd0d2bbce5f97a06f634d17d62e79)
This commit is contained in:
@@ -741,6 +741,9 @@ namespace Game.AI
|
||||
|
||||
_isCharmed = charmed;
|
||||
|
||||
if (charmed)
|
||||
me.GetMotionMaster().MoveFollow(me.GetCharmer(), SharedConst.PetFollowDist, me.GetFollowAngle());
|
||||
|
||||
if (!charmed && !me.IsInEvadeMode())
|
||||
{
|
||||
if (_repeatWaypointPath)
|
||||
|
||||
Reference in New Issue
Block a user