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)