Changed so you can get the length of the attack animation