Lightning takes 15 mana. Here's your code Big Guy. (You can hide the variables when you throw this into your project. Also just swap the code on the cat onto your character. Make sure you have a blank sprite at the beginning.)
The lightning will follow the character. (Kinda glitchy, but I only spent like 2 and a half hours on it.) (Gimme cwedit pwease)