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

(cherry picked from commit 49e77d7c9e4c39296536cd0b2d427d047e762f46)
This commit is contained in:
jackpoz
2021-12-22 22:36:39 +01:00
committed by Shauren
parent 7779a33142
commit c75d75b9fa
+1 -1
View File
@@ -692,7 +692,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())