Three-year prison sentence for attack that left man in coma