Animations stuck when trying to queue attacks

Would that work if i wanted the player to able to , theoretically , attack using the same animation an infinite amount of times ? Like if i wanted the player to keep spamming the same sword trust animation and not transition into a different animation ?