Fix Magician properly Although the fix 81d6340126c7960a0c51f2c7b576ec09d4597252 on 8f913c9e1cd32615eb31511611e11750ddc54856 was correct, the battle engine was not prepared for a situation in which a source hitting a target has an effect on the source itself. Add now a hard check for Magician so the fix works properly.
Fix Magician properly
Although the fix 81d6340126c7960a0c51f2c7b576ec09d4597252 on
8f913c9e1cd32615eb31511611e11750ddc54856 was correct, the battle engine
was not prepared for a situation in which a source hitting a target
has an effect on the source itself.
Add now a hard check for Magician so the fix works properly.

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