mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[12758] Hunter pet's will now properly follow stay commands.
This commit is contained in:
parent
ab98672241
commit
447fae9e66
3 changed files with 3 additions and 2 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit d6f85bdd312ca4704c7ad45dd35ebecfef54c313
|
Subproject commit c0b82a9b0637a9f510c0164df3c6173420ef73b9
|
||||||
|
|
@ -88,6 +88,7 @@ void WorldSession::HandlePetAction(WorldPacket& recv_data)
|
||||||
switch (spellid)
|
switch (spellid)
|
||||||
{
|
{
|
||||||
case COMMAND_STAY: // flat=1792 // STAY
|
case COMMAND_STAY: // flat=1792 // STAY
|
||||||
|
pet->clearUnitState(UNIT_STAT_MOVING);
|
||||||
pet->StopMoving();
|
pet->StopMoving();
|
||||||
pet->GetMotionMaster()->Clear(false);
|
pet->GetMotionMaster()->Clear(false);
|
||||||
pet->GetMotionMaster()->MoveIdle();
|
pet->GetMotionMaster()->MoveIdle();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12757"
|
#define REVISION_NR "12758"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue