Core/AI: Fix charmed Creatures with SAI scripts not starting waypoint paths

Port From (https://github.com/TrinityCore/TrinityCore/commit/c75d75b9fa53309467ec7fff810dd77d9f7fde09)
This commit is contained in:
hondacrx
2022-01-07 11:36:15 -05:00
parent 479646c0e1
commit 56e6674001
+1 -1
View File
@@ -741,7 +741,7 @@ namespace Game.AI
_isCharmed = charmed;
if (charmed)
if (charmed && !me.IsPossessed() && !me.IsVehicle())
me.GetMotionMaster().MoveFollow(me.GetCharmer(), SharedConst.PetFollowDist, me.GetFollowAngle());
if (!charmed && !me.IsInEvadeMode())