In my code I almost never make a condition on only a variable as shown in your code. It will loop endlessly and perform code where doesn't have to. Instead, at the place where the "virustotal" gets decreased, at that time I would check if the decreased value has reached zero, and if it is just do the animation. remember that changing the animation will automatically play it.
If you want some tips, you can always visit my youtube channel for a lot of useful tips for making games hands-on.
youtube.com/playlist