Where would I put the formula to ask a spell how many spellpoints I want to spend on it so it calculates the damage correctly?  It works great for the Repeat section of the spell since it's hard coded, but for the initial click I cannot get it to ask me what level I want to cast it at.