Implement Hidden Power properly.
Implement Hidden Power properly.

When a Pokemon is created (i.e. when a battle begins), its Hidden Power type and base power are calculated from its IVs. The base "Hidden Power" move will use those.

"Hidden Power [Type]", however, still bypasses the system entirely.

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