Core/Movement: MotionMaster reimplementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/426f9f2f92b26fbb68e7cda9290ccbd586c6af4e)
This commit is contained in:
@@ -141,7 +141,7 @@ namespace Game
|
||||
{
|
||||
case CommandStates.Stay: //flat=1792 //STAY
|
||||
pet.StopMoving();
|
||||
pet.GetMotionMaster().Clear(false);
|
||||
pet.GetMotionMaster().Clear();
|
||||
pet.GetMotionMaster().MoveIdle();
|
||||
charmInfo.SetCommandState(CommandStates.Stay);
|
||||
|
||||
@@ -249,7 +249,7 @@ namespace Game
|
||||
break;
|
||||
case CommandStates.MoveTo:
|
||||
pet.StopMoving();
|
||||
pet.GetMotionMaster().Clear(false);
|
||||
pet.GetMotionMaster().Clear();
|
||||
pet.GetMotionMaster().MovePoint(0, x, y, z);
|
||||
charmInfo.SetCommandState(CommandStates.MoveTo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user