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

Clash of clones... help?


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()
if hero.canElectrocute(enemy):


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

1 Like

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

1 Like

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.