Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!
i think That’s because you’re incrementing enemyIndex right after the while, so the things under that don’t run. Put the enemyIndex +=1 under the farthest = target. That’s just what I think