Slight refactor of move target change code Mostly this updates the comments to make it clear why target updating happens twice.
Slight refactor of move target change code
Mostly this updates the comments to make it clear why target updating
happens twice.

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