Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

Sarven shepherd help!


it shows no wrong lines or start unidentified. thank you
here is my code.

while True:
enemies = hero.findEnemies()
enemyIndex = 0

while enemyIndex > len(enemies):
enemy = enemies[enemyIndex]
if enemy.type != “sand-yak”:
while > 0:

hero.moveXY(40, 32)


In the code, you should check if enemy is valid or true. Could you send a screenshot of the error?