Yeah I wish I had a better fix, but this is certainly better than the other fixes I have attempted (doubling thresholds, etc).

Forgot to add in the first post and couldn't find an edit option to include it, I also included an eot trigger to make bug = 0. I don't know if this will work as intended, for example if computer attacks you, and you autocalc, will you go into your turn with bug = 1?

Still it is a good fix in that all of the player's non-autocalc battles will be figured, and the first autocalc of every "turn" will be counted as well.

I think two autocalcs per turn is rare enough for this fix to be acceptable.