fix battleAutoEnd again.

why must this option cause me so much pain?