Fixed "battleAutoEnd" causing peculiar crashes.