Fix crash when fainted Pokemon tries to trap foe
Fix crash when fainted Pokemon tries to trap foe

aakashrajput/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,xfix/Pokemon-Showdown,urkerab/Pokemon-Showdown,panpawn/Gold-Server,Sora-League/Sora,DesoGit/Tsunami_PS,jumbowhales/Pokemon-Showdown,Volcos/SpacialGaze,xCrystal/Pokemon-Showdown,Zarel/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,panpawn/Pokemon-Showdown,xfix/Pokemon-Showdown,svivian/Pokemon-Showdown,Enigami/Pokemon-Showdown,danpantry/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Enigami/Pokemon-Showdown,Kokonoe-san/Glacia-PS,Zarel/Pokemon-Showdown,AnaRitaTorres/Pokemon-Showdown,Mystifi/Exiled,svivian/Pokemon-Showdown,danpantry/Pokemon-Showdown,jd4564/Pokemon-Showdown,panpawn/Gold-Server,TbirdClanWish/Pokemon-Showdown,panpawn/Gold-Server,ShowdownHelper/Saffron,aakashrajput/Pokemon-Showdown,Mystifi/Exiled,zek7rom/SpacialGaze,Enigami/Pokemon-Showdown,Mystifi/Exiled,HoeenCoder/SpacialGaze,Volcos/SpacialGaze,jumbowhales/Pokemon-Showdown,xfix/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,xfix/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,xCrystal/Pokemon-Showdown,DesoGit/Tsunami_PS,CreaturePhil/Showdown-Boilerplate,zek7rom/SpacialGaze,DarkSuicune/Pokemon-Showdown,Sora-League/Sora,Sora-League/Sora,AustinXII/Pokemon-Showdown,Git-Worm/City-PS,PS-Spectral/Spectral,Enigami/Pokemon-Showdown,svivian/Pokemon-Showdown,urkerab/Pokemon-Showdown,Lord-Haji/SpacialGaze,DesoGit/Tsunami_PS,panpawn/Pokemon-Showdown,azum4roll/Pokemon-Showdown,AustinXII/Pokemon-Showdown,KewlStatics/Shit,TbirdClanWish/Pokemon-Showdown,AnaRitaTorres/Pokemon-Showdown,ShowdownHelper/Saffron,Bryan-0/Pokemon-Showdown,svivian/Pokemon-Showdown,jd4564/Pokemon-Showdown,Bryan-0/Pokemon-Showdown,svivian/Pokemon-Showdown,KewlStatics/Shit,cadaeic/Pokemon-Showdown,Lord-Haji/SpacialGaze,HoeenCoder/SpacialGaze,KewlStatics/Alliance,AustinXII/Pokemon-Showdown,xCrystal/Pokemon-Showdown,Git-Worm/City-PS,xfix/Pokemon-Showdown,Kokonoe-san/Glacia-PS,urkerab/Pokemon-Showdown,PS-Spectral/Spectral,KewlStatics/Alliance,PS-Spectral/Spectral,DarkSuicune/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,Guernouille/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Guernouille/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,ShowdownHelper/Saffron,cadaeic/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,Lord-Haji/SpacialGaze,azum4roll/Pokemon-Showdown,Zarel/Pokemon-Showdown,HoeenCoder/SpacialGaze,HoeenCoder/SpacialGaze