Fix imposter/transform/mimic in Automagic (#3391)
Fix imposter/transform/mimic in Automagic (#3391)

This fix allows pokémon using the aforementioned moves/abilities (e.g. Ditto) to activate setup moves when triggering secondary effects.
HoeenCoder/SpacialGaze,jumbowhales/Pokemon-Showdown,xfix/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,Sora-League/Sora,AustinXII/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,svivian/Pokemon-Showdown,panpawn/Gold-Server,ShowdownHelper/Saffron,Zarel/Pokemon-Showdown,xfix/Pokemon-Showdown,svivian/Pokemon-Showdown,svivian/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,DesoGit/Tsunami_PS,xfix/Pokemon-Showdown,HoeenCoder/SpacialGaze,urkerab/Pokemon-Showdown,xCrystal/Pokemon-Showdown,Lord-Haji/SpacialGaze,CreaturePhil/Showdown-Boilerplate,Zarel/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,Sora-League/Sora,QuiteQuiet/Pokemon-Showdown,Enigami/Pokemon-Showdown,Sora-League/Sora,Enigami/Pokemon-Showdown,DesoGit/Tsunami_PS,xCrystal/Pokemon-Showdown,panpawn/Pokemon-Showdown,Lord-Haji/SpacialGaze,ShowdownHelper/Saffron,Zarel/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,PS-Spectral/Spectral,aakashrajput/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,panpawn/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,Enigami/Pokemon-Showdown,HoeenCoder/SpacialGaze,CreaturePhil/Showdown-Boilerplate,urkerab/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,PS-Spectral/Spectral,Mystifi/Exiled,DesoGit/Tsunami_PS,QuiteQuiet/Pokemon-Showdown,PS-Spectral/Spectral,xfix/Pokemon-Showdown,danpantry/Pokemon-Showdown,AustinXII/Pokemon-Showdown,ShowdownHelper/Saffron,sirDonovan/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,svivian/Pokemon-Showdown,Mystifi/Exiled,panpawn/Gold-Server,panpawn/Gold-Server,Lord-Haji/SpacialGaze,xfix/Pokemon-Showdown,AustinXII/Pokemon-Showdown,urkerab/Pokemon-Showdown,Mystifi/Exiled,TbirdClanWish/Pokemon-Showdown,Enigami/Pokemon-Showdown,HoeenCoder/SpacialGaze,danpantry/Pokemon-Showdown,xCrystal/Pokemon-Showdown,svivian/Pokemon-Showdown,sirDonovan/Pokemon-Showdown