using the facing angle to shoot something is bad because the unit does not have to face the point in order to cast something
set casting time and point to 0 and see for yourself
and if the ability is casted with an item it will be all fucked up
better set the angle to "angle between caster and target point of ability being cast" + random number betwen -10 and 10
you are using custom values which is bad because they might interfer with already existing systems
there still are debug messages in the code
sounds leak (probably)
a better way to choose one of five would be to make an array of sounds at map ini and set
sound[0] = sound
sound[1] = another sound
etc.
and "Play sound[random number between 0 and 4]"
the spell can damage buildings
getting the unit flying height is unnacurate and might yield different results with different graphic settings (thunder clap terrain deformation)
better use a formular for it (commonly called "Jump Parabola", see signature)
uploading stuff to the pastebin is bad because it will be deleted if noone views it
it is smarter to attach it to your post
great that you are asking for testing first before uploading your spell to the spell section