Set zMoveUsed flag only after the Z-Move could actually be used
Set zMoveUsed flag only after the Z-Move could actually be used

Fixes issue when put to sleep before moving.

DarkSuicune/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,AustinXII/Pokemon-Showdown,KewlStatics/Shit,Sora-League/Sora,xfix/Pokemon-Showdown,svivian/Pokemon-Showdown,AnaRitaTorres/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,Volcos/SpacialGaze,Bryan-0/Pokemon-Showdown,HoeenCoder/SpacialGaze,panpawn/Pokemon-Showdown,PS-Spectral/Spectral,KewlStatics/Alliance,Guernouille/Pokemon-Showdown,HoeenCoder/SpacialGaze,Bryan-0/Pokemon-Showdown,xfix/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,AustinXII/Pokemon-Showdown,DesoGit/Tsunami_PS,xCrystal/Pokemon-Showdown,ShowdownHelper/Saffron,danpantry/Pokemon-Showdown,svivian/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,aakashrajput/Pokemon-Showdown,Mystifi/Exiled,aakashrajput/Pokemon-Showdown,Mystifi/Exiled,AustinXII/Pokemon-Showdown,xCrystal/Pokemon-Showdown,svivian/Pokemon-Showdown,Guernouille/Pokemon-Showdown,KewlStatics/Alliance,azum4roll/Pokemon-Showdown,zek7rom/SpacialGaze,panpawn/Gold-Server,aakashrajput/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,TbirdClanWish/Pokemon-Showdown,Zarel/Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,Enigami/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,Enigami/Pokemon-Showdown,azum4roll/Pokemon-Showdown,cadaeic/Pokemon-Showdown,DarkSuicune/Pokemon-Showdown,svivian/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,jd4564/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,Lord-Haji/SpacialGaze,HoeenCoder/SpacialGaze,jumbowhales/Pokemon-Showdown,xfix/Pokemon-Showdown,xfix/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,DesoGit/Tsunami_PS,QuiteQuiet/Pokemon-Showdown,Kokonoe-san/Glacia-PS,sirDonovan/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,Sora-League/Sora,Git-Worm/City-PS,zek7rom/SpacialGaze,PS-Spectral/Spectral,Zarel/Pokemon-Showdown,xfix/Pokemon-Showdown,panpawn/Gold-Server,DesoGit/Tsunami_PS,danpantry/Pokemon-Showdown,PS-Spectral/Spectral,QuiteQuiet/Pokemon-Showdown,Mystifi/Exiled,panpawn/Gold-Server,SolarisFox/Pokemon-Showdown,Zarel/Pokemon-Showdown,urkerab/Pokemon-Showdown,urkerab/Pokemon-Showdown,AnaRitaTorres/Pokemon-Showdown,ShowdownHelper/Saffron,Enigami/Pokemon-Showdown,Lord-Haji/SpacialGaze,Lord-Haji/SpacialGaze,urkerab/Pokemon-Showdown,Git-Worm/City-PS,Pikachuun/Pokemon-Showdown,jd4564/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,panpawn/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,Sora-League/Sora,KewlStatics/Shit,HoeenCoder/SpacialGaze,cadaeic/Pokemon-Showdown,xCrystal/Pokemon-Showdown,Enigami/Pokemon-Showdown,Kokonoe-san/Glacia-PS,ShowdownHelper/Saffron,Pikachuun/Pokemon-Showdown,Volcos/SpacialGaze,svivian/Pokemon-Showdown