Fix animation crashes
Fix animation crashes

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