 He is conflicted between either saving the life of his "worst enemy, and perhaps [his] only friend" and leading the mutants to victory.In the end he caves in and returns with the X-Men to use his magnetic powers (Xavier's brain-waves are apparently electro-magnetic) to help Xavier send his psychic message.It is successful, and Xavier awakens just in time to thank Magneto and tell each of his X-Men individually how proud he is of all of them before apparently passing away.