I have tried this many times and the first couple of times i just figured the other pokemon had a quick claw and got lucky. But it happened 20+ times. I have also tried with the typhlosion being the first pokemon and then switching to the Haunter, but same outcome. The Typhlosion can attack the enemy first, but not my Haunter. (In between the pictures my Haunter attacks with shadow pulse since it does not kill the Hitmontop, so i can easily test this on the same pokemon at the same time)