mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
fix(Core/Movement): despawn mini pets on flight take (#9624)
Fixes #9510
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user