chore(Core/Player): remove unused AnticheatSetSkipOnePacketForASH() function (#17947)

This commit is contained in:
Tristan 'Natrist' Cormier
2023-12-08 19:09:52 -05:00
committed by GitHub
parent 4d935d6d8a
commit ac676f87ab
9 changed files with 0 additions and 54 deletions
@@ -383,7 +383,6 @@ void WorldSession::HandleMovementOpcodes(WorldPacket& recvData)
{
if (plrMover)
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(plrMover, true);
sScriptMgr->AnticheatUpdateMovementInfo(plrMover, movementInfo);
}
@@ -405,7 +404,6 @@ void WorldSession::HandleMovementOpcodes(WorldPacket& recvData)
{
if (plrMover)
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(plrMover, true);
sScriptMgr->AnticheatUpdateMovementInfo(plrMover, movementInfo);
}
return;
@@ -427,7 +425,6 @@ void WorldSession::HandleMovementOpcodes(WorldPacket& recvData)
{
if (plrMover)
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(plrMover, true);
sScriptMgr->AnticheatUpdateMovementInfo(plrMover, movementInfo);
//LOG_INFO("anticheat", "MovementHandler:: 2 We were teleported, skip packets that were broadcast before teleport");
}
@@ -440,7 +437,6 @@ void WorldSession::HandleMovementOpcodes(WorldPacket& recvData)
{
if (plrMover)
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(plrMover, true);
sScriptMgr->AnticheatUpdateMovementInfo(plrMover, movementInfo);
}
@@ -461,8 +457,6 @@ void WorldSession::HandleMovementOpcodes(WorldPacket& recvData)
}
else if (plrMover->GetTransport()->GetGUID() != movementInfo.transport.guid)
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(plrMover, true);
bool foundNewTransport = false;
plrMover->m_transport->RemovePassenger(plrMover);
if (Transport* transport = plrMover->GetMap()->GetTransport(movementInfo.transport.guid))
-4
View File
@@ -120,13 +120,9 @@ void WorldSession::SendDoFlight(uint32 mountDisplayId, uint32 path, uint32 pathN
GetPlayer()->Mount(mountDisplayId);
if (Creature* critter = ObjectAccessor::GetCreature(*GetPlayer(), GetPlayer()->GetCritterGUID()))
{
critter->DespawnOrUnsummon();
}
GetPlayer()->GetMotionMaster()->MoveTaxiFlight(path, pathNode);
sScriptMgr->AnticheatSetSkipOnePacketForASH(GetPlayer(), true);
}
bool WorldSession::SendLearnNewTaxiNode(Creature* unit)