From an idea from mcompany some weeks ago, that was quite a change in my tactic (was not only an optimization of existing parts), I'm trying to focus fire on enemies that are already attacked by allies if there are no specific situations.
The problem is the following. At the start a bot attacks the enemy E1, another bot attacks the enemy E2, after one tick the bots see that the other enemy is attacked by the ally, so they quit attacking and the switch targets. And this goes in a loop for a while.
Now the problem happens when a bot knows that there is an enemy in range attacked by an ally. How can I solve this for the starting situation?
For the moment I will add a failsafe solution like "please shoot nevertheless" but that is a bit meh.