As the title says, when I try to create a list of enemies with hero.findEnemies() in Python then print out the list, it prints out an empty list in the console.
enemies = hero.findEnemies();
I’m pretty sure it worked a couple of hours ago. Does anyone know why it doesn’t work now or how I can fix it?
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!
you should do it like enemies = champion.findEnemies()
since its not really you that is doing the work (your basically a crystal)
and followed by a for loop
for enemy in enemies();
also im not sure print works here
Now that I’ve tested champion.findEnemies(), I see that it does work, but my earlier code, which did successfully work, used hero.findEnemies() to get a list of all the enemy towers. Is it a bug, or is it an intentional change by the developers to make it so that you can’t make your champions attack other lanes?
that idk you may ask @Chaboi_3000 or other developers