Clash of clones!


#1

Hello, I need help.
I can’t do this level.
Do you have any suggestions?
Here is my code :

`hero.moveXY(65,65)
while True:
enemy=hero.findNearest(hero.findEnemies())
hero.say(“Boo”)
if enemy:
while enemy.health>0:
hero.attack(enemy)
else:
hero.bash(hero.findNearest(hero.findEnemies()))

`


#2

Help please!!!


#3

I do it:slight_smile:


#4

I don’t know if your code is indented correctly, that might be an issue. Also what type of shoes do you have on? I also see something before your first line. Maybe making your code neater could help.


#5

Thank you. I do this exercice