if (!GetIsAreaInterior(GetArea(oCaster))){...}
Note: This spell requires an outdoor, open-sky setting to function.
That being said, the resulting shockwave of the thunderclap might cause a cave-in, however.
The thunderclap via call lightning and fireball asphyxiation are both devious ideas for the GM's.
Stephen, stop being a scaredy-cat