A Magus using spell combat can cast the spell before or after his regular attacks. Most of the time, and certainly in this case, it is best to cast then attack. It's not very intuitive.