I would add in another variable, say

if animation >=25 && anidone == false

and as soon as the animation starts sets the anidone variable to true. It then wont replay if you know what I mean!