This is a small bug in this version because the calculation is failing. There are 2 options to fix this: First, fix the calculation error. Second, just implement that the bot will throw a pokeball if the enemy pokemon got a minimum cp of 0, not 1.
we got to the conclution what happend when you have a 0cp pokemon , and how it happens the question is how do we stop using ultrabals ! strange 0cp bug costed me a few 1.2 k cp poke's 2day if anyone has found a workaround please share. here is a link to the post where the problem is discussed ! https://www.thebuddyforum.com/pokefarmer-forum/pokefarmer-support/251104-0cp-0iv.html