mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Movement: spline chains will now properly handle flying spline chains
This commit is contained in:
@@ -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