You could calculate the max time the first time both the prog and effector have updated, store that as a variable on the parent window MaxTime='variableName', and replace the script with one that omits that bit of code.
But due to rounding, early calcs of MaxTime will be less accurate than later calcs.
And cast times for the same ability will often vary through-out a session due to temp haste buffs, so its probably not a good idea to store MaxTime for use in subsequent casts.
|