The OP was kinda confusing but I think my post fits the description . I was laddering ORAS Ubers on a test alt :
Turn 35
You have 150 seconds to make your decision.
★H83: I wish I was though
Groudon used
Precipice Blades!
The opposing Undyne avoided the attack!
The opposing Undyne used
Dragon Tail!
Groudon lost 17.8% of its health!
The harsh sunlight faded.
Giratina (Giratina-Origin) was dragged out!
Giratina is hurt by the spikes!
The opposing Undyne restored a little HP using its Leftovers!
http://replay.pokemonshowdown.com/ubers-334836886
Levitate mons are unaffected by spikes afaik.