Found a bug in the forest temple. Celebi kicked my butt, but when I blacked out and got sent to the PokeCenter, the scene of destroying the machine occurred INSIDE the Pokecenter. Then when the light flashed, it brought me back to the temple and treated it like I succeeded the fight.