mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Movement: Add debug output to Worldsession::ReadMovementInfo to find out which movementflag restriction was violated. Please use this to give feedback.
This commit is contained in:
@@ -810,6 +810,9 @@ void WorldSession::ReadMovementInfo(WorldPacket &data, MovementInfo* mi)
|
||||
//! Anti-cheat checks. Please keep them in seperate if() blocks to maintain a clear overview.
|
||||
#define VIOLATE_AND_RETURN \
|
||||
{ \
|
||||
sLog->outDebug(LOG_FILTER_UNITS, "WorldSession::ReadMovementInfo: Violation of MovementFlags found. "
|
||||
"MovementFlags: %u, MovementFlags2: %u for player GUID: %u. Player will not be relocated.",
|
||||
mi->GetMovementFlags(), mi->GetExtraMovementFlags(), GetPlayer()->GetGUIDLow());
|
||||
mi->Violated = true; \
|
||||
return; \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user