Fixed the order of healing and sleeping in Rest The last commit mixed up this ordering, so I had to fix it while maintaining the last commit's bug fix.
Fixed the order of healing and sleeping in Rest
The last commit mixed up this ordering, so I had to fix it while
maintaining the last commit's bug fix.

Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,SerperiorBae/Bae-Showdown-2,catanatron/pokemon-rebalance,LustyAsh/EOS-Master,AWailOfATail/Pokemon-Showdown,Hopenub/Pokemon-Showdown,azum4roll/Pokemon-Showdown,psnsVGC/Wish-Server,Breakfastqueen/advanced,HoeenCoder/SpacialGaze,CorruptedHelix/Pokemon-Showdown,AvinashSwaminathan/lotus-v3,hayleysworld/serenityc9,ZestOfLife/PSserver,KewlStatics/Pokeindia-Codes,svivian/Pokemon-Showdown,SerperiorBae/Bae-Showdown-2,Vacate/Pokemon-Showdown,Flareninja/Lumen-Pokemon-Showdown,lFernanl/Pokemon-Showdown,Alpha-Devs/OmegaRuby-Server,ankailou/Pokemon-Showdown,Nineage/Origin,Pikachuun/Joimmon-Showdown,BadSteel/Pokemon-Showdown,Breakfastqueen/advanced,Flareninja/Pokemon-Showdown,Zipzapadam/Server,ehk12/coregit,kuroscafe/Paradox,anubhabsen/Pokemon-Showdown,kuroscafe/Showdown-Boilerplate,hayleysworld/serenityserver,hayleysworld/serenityc9,abulechu/Lumen-Pokemon-Showdown,panpawn/Pokemon-Showdown,TheDiabolicGift/Showdown-Boilerplate,TheManwithskills/DS,sama2/Dropp-Pokemon-Showdown,lFernanl/Mudkip-Server,EmmaKitty/Pokemon-Showdown,Yggdrasil-League/Yggdrasil,urkerab/Pokemon-Showdown,SSJGVegito007/Vegito-s-Server,PrimalGallade45/Lumen-Pokemon-Showdown,AbsolitoSweep/Absol-server,Celecitia/Plux-Pokemon-Showdown,UniversalMan12/Universe-Server,Enigami/Pokemon-Showdown,yashagl/pokemon,MeliodasBH/boarhat,TheManwithskills/Dusk--Showdown,JellalTheMage/Jellals-Server,KewlStatics/Alliance,Pikachuun/Pokemon-Showdown,Flareninja/Pokemon-Showdown-1,SerperiorBae/BaeShowdown,abrulochp/Lumen-Pokemon-Showdown,Atwar/ServerClassroom,Zarel/Pokemon-Showdown,Johto-Serverr/Werfin-Boilerplate,Flareninja/Lumen-Pokemon-Showdown,Flareninja/Showdown-Boilerplate,Alpha-Devs/Alpha-Server,Articuno-I/Pokemon-Showdown,MasterFloat/Pokemon-Showdown,DalleTest/Pokemon-Showdown,SubZeroo99/Pokemon-Showdown,KewlStatics/Alliance,Kill-The-Noise/BlakJack-Boilerplate,CharizardtheFireMage/Showdown-Boilerplate,Atwar/server-epilogueleague.rhcloud.com,KewlStatics/Showdown-Template,Enigami/Pokemon-Showdown,MayukhKundu/Pokemon-Domain,gustavo515/test,ehk12/clone,EienSeiryuu/Pokemon-Showdown,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,SilverTactic/Pokemon-Showdown,DesoGit/Tsunami_PS,Extradeath/psserver,CrestfallPS/Pokemon-Showdown,azum4roll/Pokemon-Showdown,sama2/Dropp-Pokemon-Showdown,HoeenCoder/SpacialGaze,SkyeTheFemaleSylveon/Pokemon-Showdown,MeliodasBH/Articuno-Land,AnaRitaTorres/Pokemon-Showdown,comedianchameleon/servertest1,brettjbush/Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,Sora-Server/Sora,CreaturePhil/Showdown-Boilerplate,Wando94/Pokemon-Showdown,Pablo000/aaa,ZeroParadox/BlastBurners,hayleysworld/harmonia,comedianchameleon/servertest1,Pokemon-Devs/Pokemon-Showdown,HoeenCoder/SpacialGaze,SSJGVegito007/Vegito-s-Server,Pikachuun/Pokemon-Showdown-SMCMDM,forbiddennightmare/Pokemon-Showdown-1,Yggdrasil-League/Yggdrasil,kuroscafe/Showdown-Boilerplate,FakeSloth/wulu,EienSeiryuu/Pokemon-Showdown,AbsolitoSweep/Absol-server,yashagl/pokemon-showdown,SolarisFox/Pokemon-Showdown,comedianchameleon/test,kotarou3/Krister-Pokemon-Showdown,theodelhay/test,Nineage/Origin,gustavo515/gashoro,yashagl/pokecommunity,javi501/Lumen-Pokemon-Showdown,Sora-Server/Sora,Fusxfaranto/Pokemon-Showdown,svivian/Pokemon-Showdown,InvalidDN/Pokemon-Showdown,KewlStatics/Pokeindia-Codes,ShowdownHelper/Saffron,abulechu/Dropp-Pokemon-Showdown,Hidden-Mia/Roleplay-PS,SerperiorBae/Pokemon-Showdown-1,TheManwithskills/Creature-phil-boiler,Ridukuo/Test2,Arcticblast/Pokemon-Showdown,Irraquated/Showdown-Boilerplate,aakashrajput/Pokemon-Showdown,DarkSuicune/Pokemon-Showdown,LegendBorned/PS-Boilerplate,AustinXII/Pokemon-Showdown,Kill-The-Noise/BlakJack-Boilerplate,Articuno-I/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,ShowdownHelper/Saffron,zczd/enculer,Wando94/Spite,Tesarand/Pokemon-Showdown,Bryan-0/Pokemon-Showdown,theodelhay/test,hayleysworld/Pokemon-Showdown,Parukia/Pokemon-Showdown,lFernanl/Pokemon-Showdown,Wando94/Pokemon-Showdown,Vacate/Pokemon-Showdown,TheManwithskills/Server-2,lFernanl/Zero-Pokemon-Showdown,JellalTheMage/PS-,ZeroParadox/ugh,xCrystal/Pokemon-Showdown,Legit99/Lightning-Storm-Server,AvinashSwaminathan/Pokelegends,TogeSR/Lumen-Pokemon-Showdown,sama2/Lumen-Pokemon-Showdown,yashagl/pokemon-showdown,yashagl/pokecommunity,sama2/Viridian-Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,Lord-Haji/SpacialGaze,sirDonovan/Pokemon-Showdown,Tesarand/Pokemon-Showdown,MeliodasBH/boarhat,MayukhKundu/Technogear,svivian/Pokemon-Showdown,Flareninja/Showdown-Boilerplate,TheManwithskills/COC,forbiddennightmare/Pokemon-Showdown-1,lAlejandro22/lolipoop,SilverTactic/Dragotica-Pokemon-Showdown,CreaturePhil/Pokemon-Showdown,Bryan-0/Pokemon-Showdown,superman8900/Pokemon-Showdown,kubetz/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,Pikachuun/Pokemon-Showdown,megaslowbro1/Showdown-Server-again,kuroscafe/Paradox,MayukhKundu/Pokemon-Domain,PrimalGallade45/Dropp-Pokemon-Showdown,JellalTheMage/PS-,Psyientist/Showdown-Boilerplate,Extradeath/advanced,piiiikachuuu/Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,catanatron/pokemon-rebalance,ehk12/bigbangtempclone,Irraquated/Pokemon-Showdown,Ridukuo/Test,Firestatics/Omega-Alpha,zek7rom/SpacialGaze,Breakfastqueen/advanced,Darkshadow6/PokeMoon-Creation,asdfghjklohhnhn/Pokemon-Showdown,gustavo515/batata,DesoGit/TsunamiPS,abrulochp/Lumen-Pokemon-Showdown,LustyAsh/EOS-Master,Disaster-Area/Pokemon-Showdown,SerperiorBae/BaeShowdown,panpawn/Gold-Server,xCrystal/Pokemon-Showdown,BlazingAura/Showdown-Boilerplate,comedianchameleon/test,TheFenderStory/Pokemon-Showdown,bai2/Dropp,lFernanl/Mudkip-Server,Checkinator/Pokemon-Showdown,SkyeTheFemaleSylveon/Mudkip-Server,sirDonovan/Pokemon-Showdown,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,Wando94/Spite,Werfin96/Ultimate,piiiikachuuu/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,ankailou/Pokemon-Showdown,ScottehMax/Pokemon-Showdown,DalleTest/Pokemon-Showdown,hayleysworld/asdfasdf,TbirdClanWish/Pokemon-Showdown,Kevinxzllz/PS-Openshift-Server,xfix/Pokemon-Showdown,Firestatics/omega,Adithya4Uberz/The-Tsunami-League,ShowdownHelper/Saffron,TheFenderStory/Showdown-Boilerplate,svivian/Pokemon-Showdown,Irraquated/Pokemon-Showdown,Flareninja/Hispano-Pokemon-Showdown,Stroke123/POKEMON,danpantry/Pokemon-Showdown,sama2/Universe-Pokemon-Showdown,Kenny-/Pokemon-Showdown,Gold-Solox/Pokemon-Showdown,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,InvalidDN/Pokemon-Showdown,yashagl/yash-showdown,lFernanl/Lumen-Pokemon-Showdown,kotarou3/Krister-Pokemon-Showdown,Flareninja/Hispano-Pokemon-Showdown,Ridukuo/Test2,Hidden-Mia/Roleplay-PS,Evil-kun/Pokemon-Showdown,Lord-Haji/SpacialGaze,Atwar/server-epilogueleague.rhcloud.com,ZeroParadox/ugh,kupochu/Pokemon-Showdown,hayleysworld/asdfasdf,gustavo515/test,SilverTactic/Dragotica-Pokemon-Showdown,Guernouille/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,ZestOfLife/PSserver,TheManwithskills/Server,AWailOfATail/Pokemon-Showdown,scotchkorean27/Pokemon-Showdown,EmmaKitty/Pokemon-Showdown,AWailOfATail/awoat,iFaZe/SliverX,ScottehMax/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,KaitoV4X/Showdown,TheManwithskills/Creature-phil-boiler,Psyientist/Showdown-Boilerplate,PrimalGallade45/Lumen-Pokemon-Showdown,SerperiorBae/Bae-Showdown,FakeSloth/Infinite,abrulochp/Dropp-Pokemon-Showdown,gustavo515/final,Zarel/Pokemon-Showdown,danpantry/Pokemon-Showdown,MasterFloat/Pokemon-Showdown,psnsVGC/Wish-Server,BuzzyOG/Pokemon-Showdown,SerperiorBae/BaeShowdown,TheManwithskills/serenity,Pokemon-Devs/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,Kokonoe-san/Glacia-PS,TheManwithskills/Server---Thermal,Disaster-Area/Pokemon-Showdown,ZestOfLife/FestiveLife,UniversalMan12/Universe-Server,TheFenderStory/Showdown-Boilerplate,SubZeroo99/Pokemon-Showdown,Irraquated/Pokemon-Showdown,CharizardtheFireMage/Showdown-Boilerplate,JennyPRO/Jenny,HoeenCoder/SpacialGaze,SilverTactic/Showdown-Boilerplate,PauLucario/LQP-Server-Showdown,Flareninja/Sora,Parukia/Pokemon-Showdown,Kevinxzllz/PS-Openshift-Server,Ecuacion/Lumen-Pokemon-Showdown,johtooo/PS,Darkshadow6/PokeMoon-Creation,panpawn/Gold-Server,PrimalGallade45/Dropp-Pokemon-Showdown,Parukia/Pokemon-Showdown,Mystifi/Exiled,Irraquated/Showdown-Boilerplate,Legendaryhades/Oblivion,Nineage/Showdown-Boilerplate,DarkSuicune/Kakuja-2.0,Adithya4Uberz/KTN,Thiediev/Pokemon-Showdown,Ransei1/Alt,yashagl/pokemon,kubetz/Pokemon-Showdown,AustinXII/Pokemon-Showdown,Enigami/Pokemon-Showdown,superman8900/Pokemon-Showdown,panpawn/Pokemon-Showdown,Firestatics/Firestatics46,TheManwithskills/Dusk--Showdown,UniversalMan12/Universe-Server,zek7rom/SpacialGaze,urkerab/Pokemon-Showdown,hayleysworld/Showdown-Boilerplate,Enigami/Pokemon-Showdown,BlazingAura/Showdown-Boilerplate,KewlStatics/Shit,arkanox/MistShowdown,Ridukuo/Test,Alpha-Devs/OmegaRuby-Server,SkyeTheFemaleSylveon/Pokemon-Showdown,hayleysworld/Pokemon-Showdown,brettjbush/Pokemon-Showdown,TheDiabolicGift/Lumen-Pokemon-Showdown,SerperiorBae/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,PS-Spectral/Spectral,SerperiorBae/Bae-Showdown-2,panpawn/Gold-Server,Syurra/Pokemon-Showdown,Oiawesome/DPPtServ2,DB898/theregalias,ehk12/clone,abulechu/Dropp-Pokemon-Showdown,Extradeath/psserver,cadaeic/Pokemon-Showdown,gustavo515/final,Ecuacion/Pokemon-Showdown,Celecitia/Plux-Pokemon-Showdown,Pikachuun/Touhoumon-Showdown,SerperiorBae/PokemonShowdown2,Neosweiss/Pokemon-Showdown,comedianchameleon/test,TheDiabolicGift/Showdown-Boilerplate,Ransei1/Alt,DesoGit/Tsunami_PS,Oiawesome/DPPtServ2,MayukhKundu/Mudkip-Server,Flareninja/Pokemon-Showdown,xfix/Pokemon-Showdown,HoeenKid/Pokemon-Showdown-Johto,k3naan/Pokemon-Showdown,yashagl/yash-showdown,PS-Spectral/Spectral,MasterFloat/LQP-Server-Showdown,iFaZe/SilverZ,xfix/Pokemon-Showdown,AustinXII/Pokemon-Showdown,TheDiabolicGift/Lumen-Pokemon-Showdown,abrulochp/Dropp-Pokemon-Showdown,Syurra/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,Irraquated/EOS-Master,CreaturePhil/Pokemon-Showdown,Sora-Server/Sora,TheManwithskills/serenity,AvinashSwaminathan/lotus-v2,Adithya4Uberz/The-Tsunami-League,Lauc1an/Perulink-Showdown,svivian/Pokemon-Showdown,RustServer/Pokemon-Showdown,DesoGit/TsunamiPS,DesoGit/Tsunami_PS,TheManwithskills/New-boiler-test,RustServer/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,SerperiorBae/Bae-Showdown,TogeSR/Lumen-Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Git-Worm/City-PS,BlakJack/Kill-The-Noise,MayukhKundu/Technogear-Final,ZestOfLife/FestiveLife,megaslowbro1/Pokemon-Showdown,Ecuacion/Lumen-Pokemon-Showdown,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,Checkinator/Pokemon-Showdown,LightningStormServer/Lightning-Storm,SerperiorBae/PokemonShowdown2,hayleysworld/harmonia,scotchkorean27/Pokemon-Showdown,VoltStorm/Server-pokemon-showdown,DarkSuicune/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown,Raina4uberz/Light-server,ZeroParadox/BlastBurners,sama2/Universe-Pokemon-Showdown,DB898/theregalias,aakashrajput/Pokemon-Showdown,k3naan/Pokemon-Showdown,zczd/enculer,MeliodasBH/Articuno-Land,Irraquated/EOS-Master,Volcos/SpacialGaze,NoahVSGamingYT/Pokemon-Showdown,Zipzapadam/Server,Guernouille/Pokemon-Showdown,SerperiorBae/Bae-Showdown,Firestatics/Omega-Alpha,Atwar/ServerClassroom,Flareninja/Pokemon-Showdown-1,Neosweiss/Pokemon-Showdown,urkerab/Pokemon-Showdown,Sora-League/Sora,xfix/Pokemon-Showdown,Ecuacion/Pokemon-Showdown,sama2/Lumen-Pokemon-Showdown,Elveman/RPCShowdownServer,Git-Worm/City-PS,Firestatics/omega,TheManwithskills/Server,LightningStormServer/Lightning-Storm,TheManwithskills/Server---Thermal,abulechu/Lumen-Pokemon-Showdown,cadaeic/Pokemon-Showdown,lAlejandro22/lolipoop,xfix/Pokemon-Showdown,MayukhKundu/Technogear-Final,TheManwithskills/Server-2,Pikachuun/Pokemon-Showdown-SMCMDM,hayleysworld/serenityserver,Flareninja/Sora,hayleysworld/serenity,hayleysworld/Showdown-Boilerplate,jd4564/Pokemon-Showdown,kupochu/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,jd4564/Pokemon-Showdown,TheManwithskills/COC,SilverTactic/Showdown-Boilerplate,KewlStatics/Showdown-Template,TheManwithskills/DS,BadSteel/Omega-Pokemon-Showdown,Kill-The-Noise/BlakJack-Boilerplate,LightningStormServer/Lightning-Storm,Pikachuun/Joimmon-Showdown,Sora-League/Sora,javi501/Lumen-Pokemon-Showdown,johtooo/PS,SilverTactic/Pokemon-Showdown,JennyPRO/Jenny,Flareninja/Sora,CorruptedHelix/Pokemon-Showdown,bai2/Dropp,LegendBorned/PS-Boilerplate,Sora-League/Sora,DarkSuicune/Kakuja-2.0,Legit99/Lightning-Storm-Server,Evil-kun/Pokemon-Showdown,SkyeTheFemaleSylveon/Mudkip-Server,AnaRitaTorres/Pokemon-Showdown,Mystifi/Exiled,ehk12/bigbangtempclone,Volcos/SpacialGaze,arkanox/MistShowdown,lFernanl/Zero-Pokemon-Showdown,AWailOfATail/awoat,gustavo515/batata,Raina4uberz/Light-server,Lord-Haji/SpacialGaze,SerperiorBae/Pokemon-Showdown,anubhabsen/Pokemon-Showdown,MasterFloat/LQP-Server-Showdown,PS-Spectral/Spectral,Tesarand/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,Pablo000/aaa,Firestatics/Firestatics46,MayukhKundu/Technogear,KaitoV4X/Showdown,Kokonoe-san/Glacia-PS,megaslowbro1/Showdown-Server-again,Chespin14/Custom-Platform-Pokemon-Showdown,MayukhKundu/Mudkip-Server,NoahVSGamingYT/Pokemon-Showdown,sama2/Viridian-Pokemon-Showdown,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,hayleysworld/serenity,Lauc1an/Perulink-Showdown,miahjennatills/Pokemon-Showdown,BasedGod7/PH,PauLucario/LQP-Server-Showdown,ehk12/coregit,JellalTheMage/Jellals-Server,Alpha-Devs/Alpha-Server,MayukhKundu/Flame-Savior,Elveman/RPCShowdownServer,TheManwithskills/Server-2,TheFenderStory/Pokemon-Showdown,TheManwithskills/New-boiler-test,xCrystal/Pokemon-Showdown,asdfghjklohhnhn/Pokemon-Showdown,gustavo515/gashoro,miahjennatills/Pokemon-Showdown,KewlStatics/Shit,Mystifi/Exiled,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,Zarel/Pokemon-Showdown,AvinashSwaminathan/lotus,Extradeath/advanced,Darkshadow6/PokeMoon-Creation,Luobata/Pokemon-Showdown,lFernanl/Lumen-Pokemon-Showdown,MayukhKundu/Flame-Savior,Stroke123/POKEMON,megaslowbro1/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Gold-Solox/Pokemon-Showdown,FakeSloth/Infinite