Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
https://replay.pokemonshowdown.com/gen3randombattle-1272910144
Got this glitch playing Gen 3 Random Battle.
Thropius uses Sunny Day and tries to attack with Solar Beam being sunny, but it get one turn charging light.
BUG STATUS: NOT A BUG, Rayquaza's Air Lock negates the effects of weather...