Make Dynamax ending the last end-of-turn effect
Make Dynamax ending the last end-of-turn effect

This is not a complete fix for https://github.com/smogon/pokemon-showdown/commit/296c308e6285989cf660a4aab9ebbc889f6cfd34, but fixes probably 99% of cases so is good enough for now.
svivian/Pokemon-Showdown,svivian/Pokemon-Showdown,Enigami/Pokemon-Showdown,xfix/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,Zarel/Pokemon-Showdown,AustinXII/Pokemon-Showdown,Enigami/Pokemon-Showdown,xfix/Pokemon-Showdown,xfix/Pokemon-Showdown,AustinXII/Pokemon-Showdown,xfix/Pokemon-Showdown,Enigami/Pokemon-Showdown,svivian/Pokemon-Showdown,svivian/Pokemon-Showdown,urkerab/Pokemon-Showdown,AustinXII/Pokemon-Showdown,Zarel/Pokemon-Showdown,svivian/Pokemon-Showdown,Zarel/Pokemon-Showdown,urkerab/Pokemon-Showdown,Enigami/Pokemon-Showdown,urkerab/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,xfix/Pokemon-Showdown