The trick with Magmar is that it has an ability that gives it priority fire attacks at full health, like Talonflames Gale Wings. You need faster priority yourself to break through that.
thanks for the advice. i remembered that someone told me about gyarados's crunch attack against deoxys being stromg so thought i'd use that against magmar and was able to one shot it, now gotta figure out how to beat castaform