Platformer Enemy Animation Not Working Properly

Im making a Platformer Game and when my enemy collides with the player its supposed to repeatedly attack the player and play the attack animation. But the animation starts then basically freezes, any help would be greatly appreciated (Below is the code i am currently using)


You most likely have any other action to change the animation anywhere else that doesn’t take account when the wizard is attacking, also you don’t need to change the animation twice in the same event.