In a game against my friend, he had used Giga Impact with Electivire LvX to put my Magmortar LvX's HP down to 10 remaining. When I attach a Basic Fire energy to my Magmortar LvX, does my poke-body take effect first or his? Would I die? Or restore HP, then take damage, leaving me at 10 Hp again? They are both active pokemon.