mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[9212] Implement pet speed synchronization with owner only for follow mode.
* This allow pet use own speed (and all speed affects appiedto pet itself) in combat. * Apply this speed synhronization to minipets/guardians also. * Also rename Unit::SetSpeed to SetSpeedRate as more close to real functionality.
This commit is contained in:
parent
a6a5935406
commit
eaecc467d5
8 changed files with 73 additions and 22 deletions
|
|
@ -432,7 +432,7 @@ void WorldSession::HandleForceSpeedChangeAck(WorldPacket &recv_data)
|
|||
{
|
||||
sLog.outError("%sSpeedChange player %s is NOT correct (must be %f instead %f), force set to correct value",
|
||||
move_type_name[move_type], _player->GetName(), _player->GetSpeed(move_type), newspeed);
|
||||
_player->SetSpeed(move_type,_player->GetSpeedRate(move_type),true);
|
||||
_player->SetSpeedRate(move_type,_player->GetSpeedRate(move_type),true);
|
||||
}
|
||||
else // must be lesser - cheating
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue