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

[SOLVED] Clash of Clones - help

I can’t pass clash of clones. Here is my code -

hero.moveXY(92, 70)
while True:
enemy = hero.findNearestEnemy()
if enemy:
if enemy.type != “archer”:
hero.attack(enemy)
if hero.isReady(“cleave”):
hero.cleave(enemy)
if hero.isReady(“electrocute”) and hero.canElectrocute(enemy):
hero.electrocute(enemy)

Never mind. I changed some things and I finished it.

1 Like