Ignore mouse click while animation plays?

I have 2 animations of a right fist and left fist punching. Left click is left fist, and right the opposite.

How would make the punch animation keep playing even if you click another mouse button? Currently if you tap left and right fast it plays just the start of each animation and he attacks really fast.

You can always check if the animation is playing using:

Animation.IsPlaying()

So, for example, you could have a function that sets a flag based on which animation is playing:

bool flag;
void Update()
{
   if (myAnimation.IsPlaying())
     flag = true;
   else
      flag = false;
    
    if (!flag && Input....)
       // play the appropriate animation
}