Core/Units: Extend change from 6ce529 to Unit::SetRooted as well (was overlooked)
This commit is contained in:
@@ -15667,7 +15667,10 @@ void Unit::SetRooted(bool apply)
|
||||
if (m_rootTimes > 0) // blizzard internal check?
|
||||
m_rootTimes++;
|
||||
|
||||
// AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
// MOVEMENTFLAG_ROOT cannot be used in conjunction with ie. MOVEMENTFLAG_FORWARD,
|
||||
// this will freeze clients. That's why we remove any current movement flags before
|
||||
// setting MOVEMENTFLAG_ROOT
|
||||
SetUnitMovementFlags(MOVEMENTFLAG_ROOT);
|
||||
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
@@ -15702,7 +15705,7 @@ void Unit::SetRooted(bool apply)
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
// RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user