Fix some Mold Breaker bugs with drag-out moves
Fix some Mold Breaker bugs with drag-out moves

- Process the 'runSwitch' decision directly in Battle#dragIn in gen
  5 and up. This allows the Pokemon executing the drag-out move to
  remain as battle.activePokemon for the duration of the dragging
  action. This fixes Mold Breaker's interaction when moves that drag
  out Pokemon are used.
- Add a check for battle.activePokemon.isActive in the Mold Breaker
  ability activation check to prevent glitches with Red Card.
- Remove Damage/SubDamage from Mold Breaker's check and instead add
  an additional check for the Damage event specifically to use extra
  criteria. This fixes its interaction with Magic Guard.

ehk12/clone,kuroscafe/Paradox,Ridukuo/Test,Nineage/Origin,CharizardtheFireMage/Showdown-Boilerplate,Sora-League/Sora,BlazingAura/Showdown-Boilerplate,danpantry/Pokemon-Showdown,AbsolitoSweep/Absol-server,DarkSuicune/Kakuja-2.0,megaslowbro1/Pokemon-Showdown,gustavo515/batata,PrimalGallade45/Dropp-Pokemon-Showdown,kuroscafe/Showdown-Boilerplate,Firestatics/Firestatics46,MayukhKundu/Flame-Savior,Zipzapadam/Server,DesoGit/TsunamiPS,ZeroParadox/BlastBurners,KewlStatics/Pokeindia-Codes,TheManwithskills/DS,panpawn/Gold-Server,BlazingAura/Showdown-Boilerplate,Sora-League/Sora,panpawn/Gold-Server,PS-Spectral/Spectral,Alpha-Devs/OmegaRuby-Server,ehk12/bigbangtempclone,anubhabsen/Pokemon-Showdown,danpantry/Pokemon-Showdown,Atwar/ServerClassroom,QuiteQuiet/Pokemon-Showdown,TheDiabolicGift/Showdown-Boilerplate,aakashrajput/Pokemon-Showdown,TheFenderStory/Showdown-Boilerplate,DB898/theregalias,brettjbush/Pokemon-Showdown,k3naan/Pokemon-Showdown,TheManwithskills/Server,gustavo515/gashoro,SilverTactic/Showdown-Boilerplate,yashagl/pokemon-showdown,cadaeic/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,AWailOfATail/awoat,Enigami/Pokemon-Showdown,Hidden-Mia/Roleplay-PS,xCrystal/Pokemon-Showdown,Flareninja/Showdown-Boilerplate,Alpha-Devs/OmegaRuby-Server,Flareninja/Pokemon-Showdown,Enigami/Pokemon-Showdown,arkanox/MistShowdown,ZestOfLife/FestiveLife,jumbowhales/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,SkyeTheFemaleSylveon/Pokemon-Showdown,gustavo515/test,Flareninja/Pokemon-Showdown,EmmaKitty/Pokemon-Showdown,lFernanl/Lumen-Pokemon-Showdown,Neosweiss/Pokemon-Showdown,panpawn/Gold-Server,AnaRitaTorres/Pokemon-Showdown,megaslowbro1/Showdown-Server-again,TheManwithskills/Server---Thermal,jumbowhales/Pokemon-Showdown,ZeroParadox/ugh,yashagl/pokemon-showdown,Irraquated/Showdown-Boilerplate,svivian/Pokemon-Showdown,JellalTheMage/Jellals-Server,DesoGit/Tsunami_PS,Pikachuun/Pokemon-Showdown,PS-Spectral/Spectral,gustavo515/gashoro,PrimalGallade45/Dropp-Pokemon-Showdown,SSJGVegito007/Vegito-s-Server,Volcos/SpacialGaze,gustavo515/batata,sama2/Lumen-Pokemon-Showdown,urkerab/Pokemon-Showdown,lAlejandro22/lolipoop,Vacate/Pokemon-Showdown,zek7rom/SpacialGaze,xfix/Pokemon-Showdown,Sora-Server/Sora,Lord-Haji/SpacialGaze,TheFenderStory/Pokemon-Showdown,lAlejandro22/lolipoop,hayleysworld/serenityserver,Mystifi/Exiled,Ecuacion/Pokemon-Showdown,Pikachuun/Pokemon-Showdown,HoeenCoder/SpacialGaze,Lauc1an/Perulink-Showdown,abulechu/Lumen-Pokemon-Showdown,kotarou3/Krister-Pokemon-Showdown,Enigami/Pokemon-Showdown,TheManwithskills/Server,PauLucario/LQP-Server-Showdown,ankailou/Pokemon-Showdown,TheManwithskills/New-boiler-test,JellalTheMage/PS-,Kokonoe-san/Glacia-PS,Kevinxzllz/PS-Openshift-Server,megaslowbro1/Showdown-Server-again,javi501/Lumen-Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,zczd/enculer,abrulochp/Dropp-Pokemon-Showdown,ehk12/coregit,Articuno-I/Pokemon-Showdown,brettjbush/Pokemon-Showdown,bai2/Dropp,johtooo/PS,abulechu/Lumen-Pokemon-Showdown,DarkSuicune/Kakuja-2.0,KewlStatics/Shit,panpawn/Pokemon-Showdown,Zarel/Pokemon-Showdown,Enigami/Pokemon-Showdown,AustinXII/Pokemon-Showdown,Pikachuun/Pokemon-Showdown-SMCMDM,megaslowbro1/Pokemon-Showdown,KewlStatics/Showdown-Template,yashagl/yash-showdown,Wando94/Pokemon-Showdown,Pikachuun/Pokemon-Showdown-SMCMDM,sama2/Universe-Pokemon-Showdown,johtooo/PS,xfix/Pokemon-Showdown,SilverTactic/Dragotica-Pokemon-Showdown,gustavo515/final,Firestatics/omega,cadaeic/Pokemon-Showdown,Alpha-Devs/Alpha-Server,Ridukuo/Test,TheDiabolicGift/Lumen-Pokemon-Showdown,jd4564/Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,hayleysworld/serenity,abulechu/Dropp-Pokemon-Showdown,SSJGVegito007/Vegito-s-Server,Ecuacion/Lumen-Pokemon-Showdown,Pokemon-Devs/Pokemon-Showdown,AustinXII/Pokemon-Showdown,Celecitia/Plux-Pokemon-Showdown,sama2/Dropp-Pokemon-Showdown,Flareninja/Lumen-Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,ankailou/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,kotarou3/Krister-Pokemon-Showdown,TheManwithskills/New-boiler-test,Guernouille/Pokemon-Showdown,gustavo515/final,javi501/Lumen-Pokemon-Showdown,MayukhKundu/Flame-Savior,HoeenCoder/SpacialGaze,MasterFloat/LQP-Server-Showdown,Lord-Haji/SpacialGaze,TheManwithskills/COC,MeliodasBH/boarhat,azum4roll/Pokemon-Showdown,KaitoV4X/Showdown,DesoGit/Tsunami_PS,Atwar/server-epilogueleague.rhcloud.com,Celecitia/Plux-Pokemon-Showdown,hayleysworld/Showdown-Boilerplate,piiiikachuuu/Pokemon-Showdown,TheDiabolicGift/Showdown-Boilerplate,anubhabsen/Pokemon-Showdown,PS-Spectral/Spectral,CreaturePhil/Showdown-Boilerplate,zczd/enculer,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,Kokonoe-san/Glacia-PS,MasterFloat/LQP-Server-Showdown,k3naan/Pokemon-Showdown,TheManwithskills/serenity,AbsolitoSweep/Absol-server,Hidden-Mia/Roleplay-PS,kupochu/Pokemon-Showdown,Bryan-0/Pokemon-Showdown,Syurra/Pokemon-Showdown,ZestOfLife/PSserver,Neosweiss/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,urkerab/Pokemon-Showdown,ShowdownHelper/Saffron,JellalTheMage/PS-,gustavo515/test,Irraquated/Pokemon-Showdown,scotchkorean27/Pokemon-Showdown,TheManwithskills/Dusk--Showdown,Flareninja/Showdown-Boilerplate,TheManwithskills/Server---Thermal,jd4564/Pokemon-Showdown,xfix/Pokemon-Showdown,xfix/Pokemon-Showdown,abulechu/Dropp-Pokemon-Showdown,MeliodasBH/Articuno-Land,TheFenderStory/Showdown-Boilerplate,KewlStatics/Alliance,TheManwithskills/DS,AWailOfATail/Pokemon-Showdown,KewlStatics/Alliance,TheFenderStory/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,piiiikachuuu/Pokemon-Showdown,Irraquated/Showdown-Boilerplate,Elveman/RPCShowdownServer,KaitoV4X/Showdown,QuiteQuiet/Pokemon-Showdown,svivian/Pokemon-Showdown,DesoGit/Tsunami_PS,Kevinxzllz/PS-Openshift-Server,DB898/theregalias,PrimalGallade45/Lumen-Pokemon-Showdown,PauLucario/LQP-Server-Showdown,ehk12/clone,Git-Worm/City-PS,Flareninja/Lumen-Pokemon-Showdown,hayleysworld/serenityserver,TheManwithskills/Creature-phil-boiler,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,kupochu/Pokemon-Showdown,kuroscafe/Paradox,Firestatics/Omega-Alpha,svivian/Pokemon-Showdown,panpawn/Pokemon-Showdown,ShowdownHelper/Saffron,forbiddennightmare/Pokemon-Showdown-1,NoahVSGamingYT/Pokemon-Showdown,SilverTactic/Dragotica-Pokemon-Showdown,Guernouille/Pokemon-Showdown,Elveman/RPCShowdownServer,AWailOfATail/Pokemon-Showdown,urkerab/Pokemon-Showdown,Syurra/Pokemon-Showdown,JellalTheMage/Jellals-Server,TheManwithskills/COC,SilverTactic/Showdown-Boilerplate,TheDiabolicGift/Lumen-Pokemon-Showdown,kubetz/Pokemon-Showdown,Mystifi/Exiled,Sora-League/Sora,bai2/Dropp,CreaturePhil/Showdown-Boilerplate,hayleysworld/serenity,abrulochp/Lumen-Pokemon-Showdown,Zarel/Pokemon-Showdown,sama2/Universe-Pokemon-Showdown,arkanox/MistShowdown,Articuno-I/Pokemon-Showdown,theodelhay/test,Irraquated/Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,abrulochp/Dropp-Pokemon-Showdown,MeliodasBH/Articuno-Land,Lord-Haji/SpacialGaze,forbiddennightmare/Pokemon-Showdown-1,CharizardtheFireMage/Showdown-Boilerplate,ZeroParadox/BlastBurners,yashagl/yash-showdown,DarkSuicune/Pokemon-Showdown,ScottehMax/Pokemon-Showdown,sama2/Dropp-Pokemon-Showdown,hayleysworld/serenityc9,Atwar/server-epilogueleague.rhcloud.com,svivian/Pokemon-Showdown,Alpha-Devs/Alpha-Server,Sora-Server/Sora,DarkSuicune/Pokemon-Showdown,Lauc1an/Perulink-Showdown,ZestOfLife/FestiveLife,QuiteQuiet/Pokemon-Showdown,TheManwithskills/Creature-phil-boiler,SkyeTheFemaleSylveon/Pokemon-Showdown,Pablo000/aaa,Zarel/Pokemon-Showdown,ScottehMax/Pokemon-Showdown,HoeenCoder/SpacialGaze,sirDonovan/Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,ehk12/bigbangtempclone,ZestOfLife/PSserver,HoeenCoder/SpacialGaze,Irraquated/Pokemon-Showdown,Firestatics/Firestatics46,svivian/Pokemon-Showdown,ShowdownHelper/Saffron,psnsVGC/Wish-Server,theodelhay/test,Pokemon-Devs/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,Sora-Server/Sora,TogeSR/Lumen-Pokemon-Showdown,xCrystal/Pokemon-Showdown,lFernanl/Zero-Pokemon-Showdown,asdfghjklohhnhn/Pokemon-Showdown,AnaRitaTorres/Pokemon-Showdown,Ecuacion/Pokemon-Showdown,KewlStatics/Showdown-Template,hayleysworld/Showdown-Boilerplate,TheManwithskills/serenity,MeliodasBH/boarhat,CreaturePhil/Showdown-Boilerplate,Pablo000/aaa,AWailOfATail/awoat,azum4roll/Pokemon-Showdown,zek7rom/SpacialGaze,xfix/Pokemon-Showdown,ehk12/coregit,PrimalGallade45/Lumen-Pokemon-Showdown,Volcos/SpacialGaze,TogeSR/Lumen-Pokemon-Showdown,sama2/Lumen-Pokemon-Showdown,JennyPRO/Jenny,ZeroParadox/ugh,RustServer/Pokemon-Showdown,lFernanl/Pokemon-Showdown,Mystifi/Exiled,Firestatics/Omega-Alpha,sirDonovan/Pokemon-Showdown,superman8900/Pokemon-Showdown,kuroscafe/Showdown-Boilerplate,Ecuacion/Lumen-Pokemon-Showdown,lFernanl/Lumen-Pokemon-Showdown,hayleysworld/serenityc9,aakashrajput/Pokemon-Showdown,Wando94/Spite,Firestatics/omega,psnsVGC/Wish-Server,JennyPRO/Jenny,KewlStatics/Shit,RustServer/Pokemon-Showdown,Git-Worm/City-PS,scotchkorean27/Pokemon-Showdown,kubetz/Pokemon-Showdown,asdfghjklohhnhn/Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,lFernanl/Zero-Pokemon-Showdown,abrulochp/Lumen-Pokemon-Showdown,EmmaKitty/Pokemon-Showdown,Nineage/Origin,Bryan-0/Pokemon-Showdown,Atwar/ServerClassroom,Wando94/Pokemon-Showdown,TheManwithskills/Dusk--Showdown,Vacate/Pokemon-Showdown,Wando94/Spite,Zipzapadam/Server,lFernanl/Pokemon-Showdown,AustinXII/Pokemon-Showdown,DesoGit/TsunamiPS,xCrystal/Pokemon-Showdown,KewlStatics/Pokeindia-Codes,superman8900/Pokemon-Showdown,NoahVSGamingYT/Pokemon-Showdown