Core/Movement: spline chains will now properly handle flying spline chains
This commit is contained in:
1 parent
8a0dc8fb1f
commit
3b5c7f40e2
1 file changed
+10
-1
@@ -34,7 +34,16 @@ uint32 SplineChainMovementGenerator::SendPathSpline(Unit* me, float velocity, Mo
|
||||
|
||||
if (velocity > 0.f)
|
||||
init.SetVelocity(velocity);
|
||||
init.SetWalk(_walk);
|
||||
|
||||
if (me->IsFlying())
|
||||
{
|
||||
init.SetFly();
|
||||
init.SetUncompressed();
|
||||
init.SetSmooth();
|
||||
}
|
||||
else
|
||||
init.SetWalk(_walk);
|
||||
|
||||
return init.Launch();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user