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

This commit is contained in:
jackpoz
2020-03-07 23:18:21 +01:00
parent c7974bdf90
commit 49e77d7c9e

View File

@@ -690,7 +690,7 @@ void SmartAI::OnCharmed(bool /*isNew*/)
_charmed = charmed;
if (charmed)
if (charmed && !me->isPossessed() && !me->IsVehicle())
me->GetMotionMaster()->MoveFollow(me->GetCharmer(), PET_FOLLOW_DIST, me->GetFollowAngle());
if (!charmed && !me->IsInEvadeMode())