Suppose I use Energymite on my Active Electrode. Which is the correct order after declaring Energymite (assuming that the effect isn't cancelled by Alakazam or Power Spray):
1) Do the effect*, discard Electrode and opponent draws Prize, replace Active Pokemon
or
2) Discard Electrode and opponent draws Prize, replace Active Pokemon, then do the effect
*When I say "do the effect," I mean choosing as many Energy cards from the top 7 as I like, attaching them, and then discarding the rest of the cards.
1) Do the effect*, discard Electrode and opponent draws Prize, replace Active Pokemon
or
2) Discard Electrode and opponent draws Prize, replace Active Pokemon, then do the effect
*When I say "do the effect," I mean choosing as many Energy cards from the top 7 as I like, attaching them, and then discarding the rest of the cards.