I FOUND A GLITCH
if you hit while the cat is attacking on the first frame the attack will get cancelled
Not really
It's because if you hit him enough he may jump away which will cause whatever attack he was doing to be cancelled.