Clash of clones/ python/ help/ recomendations

Ive been stuck on this level for almost a month now and i really need some hints on how to best do this

while True:
    enemy = hero.findNearestEnemy()
    if enemy and enemy.type != "sand-yak":
        if hero.canCast("chain-lightning"):
            hero.moveXY(49, 42)
            hero.moveXY(81, 51)
            hero.cast("chain-lightning", enemy)
        elif hero.isReady("cleave"):
            hero.cleave(enemy)
        elif hero.isReady("bash"):
            hero.bash(enemy)
        else:
            hero.attack(enemy)
    else:
        enemy = hero.findNearestEnemy()

Equipment Code combat 4.3.21.PNG

4 posts were merged into an existing topic: Clash of clones/ Stuck/