Fix waiting in the animation engine
Fix waiting in the animation engine

sirDonovan/Pokemon-Showdown-Client,sirDonovan/Pokemon-Showdown-Client,Zarel/Pokemon-Showdown-Client,sirDonovan/Pokemon-Showdown-Client,Zarel/Pokemon-Showdown-Client,Zarel/Pokemon-Showdown-Client,sirDonovan/Pokemon-Showdown-Client,Zarel/Pokemon-Showdown-Client