Kelvintaph Crusader Need Help

Can you use a self.say(friendEnemy.id) to determine what target are you finding. If you do not have see through wall glasses you will not find the witch.

To kill the catapults you must run towards them and run back. The brawlers will come after you and they will be killed by the catapult fire when you run back.

Try to fix this part first, because if your hero dies you can’t test the code for your troops.

Also do not use moveXY - it makes your code wait. until your hero actually reaches the given point.
During this time you cannot do anything else, you cannot command your troops => your troops will die.

Use instead move - it instruct the hero to move towards a point, put it does not wait.

Check the thread: