mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 21:50:50 -04:00
Core/Units: Removed check for current movement flags in SetRooted method to restore its old functionality as we relied on its old broken state
This commit is contained in:
@@ -14393,9 +14393,6 @@ void Unit::SetRooted(bool apply, bool packetOnly /*= false*/)
|
||||
{
|
||||
if (!packetOnly)
|
||||
{
|
||||
if (apply == HasUnitMovementFlag(MOVEMENTFLAG_ROOT))
|
||||
return;
|
||||
|
||||
if (apply)
|
||||
{
|
||||
// MOVEMENTFLAG_ROOT cannot be used in conjunction with MOVEMENTFLAG_MASK_MOVING (tested 3.3.5a)
|
||||
@@ -15841,12 +15838,6 @@ void Unit::_ExitVehicle(Position const* exitPosition)
|
||||
|
||||
if (player)
|
||||
player->SetFallInformation(0, GetPositionZ());
|
||||
else if (HasUnitMovementFlag(MOVEMENTFLAG_ROOT))
|
||||
{
|
||||
WorldPacket data(SMSG_SPLINE_MOVE_UNROOT, 8);
|
||||
data.append(GetPackGUID());
|
||||
SendMessageToSet(&data, false);
|
||||
}
|
||||
|
||||
float height = pos.GetPositionZ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user