Hi Wade
The best legal answer I can give you is that ‘it depends’. I studied for 5 years to learn how to say that!
It really does all depend on why the neighbour build on your mate’s property. There are a few technical ways for the neighbour to legitimately on the land without recourse, but they are very rare indeed. One reason (VERY simplified) is if the neighbour had use of the land for about 20 years and your mate or his/her predecessor knew about it and did nothing about it then the neighbour may have a claim to that portion of the land. But this is VERY rare.
The probable outcome will be that the nieghbour will have to remedy the situation, either by knocking down the part of the house on your mate’s land or by buying that part of the land from your mate.
How long has your mate owned the land. If it was a recent purchase, I query why it wasn’t picked up during the searches. If it wasn’t picked up and it should have been then he could sue the conveyancer.
Your mate really should go to see a solicitor who specialises in the area.
Cheers
K
*This is not legal advice and should not be construed as such*