Overhaul Natural Gift to work properly (i.e. remove the berry) when the move misses or the target is immune.
Overhaul Natural Gift to work properly (i.e. remove the berry) when the move misses or the target is immune.

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