mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
* Temporary fix for client freezes until the entire movement system can
* get an overhaul. * Thanks to Biglad for pointing it out. --HG-- branch : trunk
This commit is contained in:
@@ -14809,7 +14809,7 @@ void Unit::SetStunned(bool apply)
|
||||
SetUInt64Value(UNIT_FIELD_TARGET, 0);
|
||||
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
|
||||
CastStop();
|
||||
AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
// AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
|
||||
// Creature specific
|
||||
if (GetTypeId() != TYPEID_PLAYER)
|
||||
@@ -14839,7 +14839,7 @@ void Unit::SetStunned(bool apply)
|
||||
data << uint32(0);
|
||||
SendMessageToSet(&data,true);
|
||||
|
||||
RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
// RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14848,7 +14848,7 @@ void Unit::SetRooted(bool apply)
|
||||
{
|
||||
if (apply)
|
||||
{
|
||||
AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
// AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
|
||||
WorldPacket data(SMSG_FORCE_MOVE_ROOT, 10);
|
||||
data.append(GetPackGUID());
|
||||
@@ -14867,7 +14867,7 @@ void Unit::SetRooted(bool apply)
|
||||
data << (uint32)2;
|
||||
SendMessageToSet(&data,true);
|
||||
|
||||
RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
// RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user