Fix(Core/Packets/AntiDOS): Remove from default some repetitive movement packets (#2809)

This commit is contained in:
Nefertumm
2020-03-26 21:51:10 -03:00
committed by GitHub
parent fcc81ed0a2
commit f5e38a7f57

View File

@@ -1480,7 +1480,15 @@ uint32 WorldSession::DosProtection::GetMaxPacketCounterAllowed(uint16 opcode) co
case MSG_RANDOM_ROLL: // not profiled
case CMSG_TIME_SYNC_RESP: // not profiled
case CMSG_TRAINER_BUY_SPELL: // not profiled
case CMSG_FORCE_SWIM_SPEED_CHANGE_ACK: // not profiled
case CMSG_FORCE_SWIM_BACK_SPEED_CHANGE_ACK: // not profiled
case CMSG_FORCE_RUN_SPEED_CHANGE_ACK: // not profiled
case CMSG_FORCE_RUN_BACK_SPEED_CHANGE_ACK: // not profiled
case CMSG_FORCE_FLIGHT_SPEED_CHANGE_ACK: // not profiled
case CMSG_FORCE_FLIGHT_BACK_SPEED_CHANGE_ACK: // not profiled
case CMSG_FORCE_WALK_SPEED_CHANGE_ACK: // not profiled
case CMSG_FORCE_TURN_RATE_CHANGE_ACK: // not profiled
case CMSG_FORCE_PITCH_RATE_CHANGE_ACK: // not profiled
{
// "0" is a magic number meaning there's no limit for the opcode.
// All the opcodes above must cause little CPU usage and no sync/async database queries at all