Don’t know what I did wrong.
# findEnemies returns a list of all your enemies. # Only attack shamans. Don't attack yaks! enemies = hero.findEnemies() enemyIndex = 0 # Wrap this section in a while loop to iterate all enemies. # While the enemyIndex is less than the length of enemies while enemyIndex < len(enemies): enemy = enemies[enemyIndex] if enemy.type == 'shaman': while enemy.health > 0: hero.attack(enemy) # Remember to increment enemyIndex enemyIndex += 1