fix(Core/SmartAI): Fix SAI's SetFollow behavior so it doesn’t inherit movement speed (#26539)

This commit is contained in:
隐如仙
2026-07-11 03:28:55 +08:00
committed by GitHub
parent cfee83d19f
commit 497cd60dcf

View File

@@ -1239,7 +1239,7 @@ void SmartAI::SetFollow(Unit* target, float dist, float angle, uint32 credit, ui
mFollowArrivedEntry = end;
mFollowArrivedAlive = !aliveState; // negate - 0 is alive
mFollowCreditType = creditType;
me->GetMotionMaster()->MoveFollow(target, mFollowDist, mFollowAngle);
me->GetMotionMaster()->MoveFollow(target, mFollowDist, mFollowAngle, MOTION_SLOT_ACTIVE, true, false);
}
void SmartAI::StopFollow(bool complete)