Fixed issue where the AI would attack too early in Chaincolt Foothills and fixed an issue with the level-up code