fix(Core/Movement): despawn mini pets on flight take (#9624)
Fixes #9510
This commit is contained in:
parent
74640b2a47
commit
a4ff3f6101
1 changed files with 5 additions and 0 deletions
|
|
@ -123,6 +123,11 @@ void WorldSession::SendDoFlight(uint32 mountDisplayId, uint32 path, uint32 pathN
|
|||
if (mountDisplayId)
|
||||
GetPlayer()->Mount(mountDisplayId);
|
||||
|
||||
if (Creature* critter = ObjectAccessor::GetCreature(*GetPlayer(), GetPlayer()->GetCritterGUID()))
|
||||
{
|
||||
critter->DespawnOrUnsummon();
|
||||
}
|
||||
|
||||
GetPlayer()->GetMotionMaster()->MoveTaxiFlight(path, pathNode);
|
||||
|
||||
sScriptMgr->AnticheatSetSkipOnePacketForASH(GetPlayer(), true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue