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)
|
if (mountDisplayId)
|
||||||
GetPlayer()->Mount(mountDisplayId);
|
GetPlayer()->Mount(mountDisplayId);
|
||||||
|
|
||||||
|
if (Creature* critter = ObjectAccessor::GetCreature(*GetPlayer(), GetPlayer()->GetCritterGUID()))
|
||||||
|
{
|
||||||
|
critter->DespawnOrUnsummon();
|
||||||
|
}
|
||||||
|
|
||||||
GetPlayer()->GetMotionMaster()->MoveTaxiFlight(path, pathNode);
|
GetPlayer()->GetMotionMaster()->MoveTaxiFlight(path, pathNode);
|
||||||
|
|
||||||
sScriptMgr->AnticheatSetSkipOnePacketForASH(GetPlayer(), true);
|
sScriptMgr->AnticheatSetSkipOnePacketForASH(GetPlayer(), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user