Clash of clones... help?


#1

I cant figure out clash of clones…
here is my code if you can give me any help.

enemies = hero.findEnemies()
enemyIndex = 0

while enemyIndex < len(enemies):
enemy = enemies[enemyIndex]
if enemy.type == “shaman” or “soldier” or “shaman” or “scout”:
enemy = hero.findNearestEnemy()
hero.attack(enemy)
else:
if hero.canElectrocute(enemy):
hero.electrocute(enemy)
else:
hero.attack(enemy)
hero.attack(enemy)


#2

you didn’t increment the enemyIndex, so you should write enemyIndex++, also, please format your code correctly using the </> button


#3

You didn’t use your abilities very well, electrocute is weak. Can I see your equipment?


#4

The enemy is only going to attack so you should use your abilities to turn the tide like @Ironhead said . I used Nalfar, and I summoned skeletons and burls, and I used my Unholy Tome 5.