While he was evil he got captured by his friends and then was cured by a potion and was turned good again.