These some shady rules man...
From: Laws of the game, rule 11,pdf
2. Offside offence
...
**FROM HERE**
A player in an offside position receiving the ball from an opponent who deliberately played* the ball, including by deliberate handball, is not considered to have gained an advantage, unless it was a deliberate save by any opponent.
*‘Deliberate play’ (excluding deliberate handball) is when a player has control
of the ball with the possibility of:
• passing the ball to a team-mate;
• gaining possession of the ball; or
• clearing the ball (e.g. by kicking or heading it)
If the pass, attempt to gain possession or clearance by the player in control of
the ball is inaccurate or unsuccessful, this does not negate the fact that the
player ‘deliberately played’ the ball.
The following criteria should be used, as appropriate, as indicators that a
player was in control of the ball and, as a result, can be considered to have
‘deliberately played’ the ball:
• The ball travelled from distance and the player had a clear view of it
• The ball was not moving quickly
• The direction of the ball was not unexpected
• The player had time to coordinate their body movement, i.e. it was not a case 111
of instinctive stretching or jumping, or a movement that achieved limited
contact/control
• A ball moving on the ground is easier to play than a ball in the air
A ‘save’ is when a player stops, or attempts to stop, a ball which is going into or
very close to the goal with any part of the body except the hands/arms (unless
the goalkeeper within the penalty area).