If a rayquaza switches in on a weather effect (rain for example) and cancels it out with air lock, and a weather move is used (rain dance for example) will it fail because of air lock, or will it work?
No, the weather move would fail thus Rain Dance will be useless