Hit animation shouldn't interupt others

I have an enemy npc and want his get hit animation to not interupt other animation like attacking. My fix would be to use a bool IsInAnimation, but is there a simpler, more clean way to do it?