mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[10068] Fixes in pet movments
* Use proper stop packet as expected. In case 0 trevel time used before move packet can generate infinity move forward (at client side). * Avoid reset top movegen before add idle in pet stay command. * Avoid assign random move to player owned creatures as default movegen. * Finish follow movegen init including need-stay case.
This commit is contained in:
parent
a0bbb0fec5
commit
492f467bcc
9 changed files with 35 additions and 34 deletions
|
|
@ -86,7 +86,7 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
|
|||
{
|
||||
case COMMAND_STAY: //flat=1792 //STAY
|
||||
pet->StopMoving();
|
||||
pet->GetMotionMaster()->Clear();
|
||||
pet->GetMotionMaster()->Clear(false);
|
||||
pet->GetMotionMaster()->MoveIdle();
|
||||
charmInfo->SetCommandState( COMMAND_STAY );
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue