Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

[SOLVED] Desert: Lurkers (Python)

#1

Hi, I need help.
My hero is not even moving.
I have no idea what else to do.

enemies = hero.findEnemies()
enemyIndex = 0
while enemyIndex < len(enemies):
    enemy = enemies[enemyIndex]
    if enemy.type == 'shaman':
        while enemy.health > 0:
            hero.attack(enemy)
    enemyIndex += 1
#2

Guys never mind.
The code works when i click submit.

#3

So it’s solved?
(20)

1 Like