Let me walk you through the steps to find this information for yourself - so the troublesome input is herofield[tCR].value, right?
In the Develop menu, make sure the debugging tools are enabled at the very top, and then near the bottom of the list, choose "Floating Info Windows" and "Show Selection Field Histories". Then since this is a herofield, filter for "Hero", and you'll see "Hero (Totals)" - choose that and click OK. In the info window that pops up, filter the list to "tCR", and look at when that changes - specifically, when is the very last change to it?
Once you have that information, you know that you need to put this script after that last change in order for it to be able to look up the CR and use that to calculate the right SR.
|