1. I am trying to create a meta icon that will show which spell is more beneficial to cast starfire or wrath in TMW.

    I need something to

    take my current cast time for starfire calculate the energy i will have when starfire finishes (this involves a sine wave calculation) calculate the damage it will do divide the damage by the cast time = dps

    do the same for wrath compare the 2 and show an icon of the spell that will do the most dps

    I have never written in lua before

    can anyone help?