I think his attacks are on a set pattern, until a certain point when the attacks just start looping. After the 12th or 13th attack, something will happen. I'm trying not to spoil it.
So, you do have to strategize when to attack and when to heal, just like with Undyne.