Clash of Clones - I couldn't beat it!

Guys, I am stuck on this level and I don’t know what to do.
Here’s my code:

while True:
    enemies = hero.findEnemies()
    enemyIndex = 0
    while enemyIndex < len(enemies):
        enemy = enemies[enemyIndex]
        if enemy.type != "sand-yak":
            while enemy.health > 0:
                if hero.isReady("bash"):
                    hero.bash(enemy)
                elif hero.isReady("power-up"):
                    hero.powerUp()
                    hero.attack(enemy)
                else:
                    hero.attack(enemy)
            pass
        enemyIndex += 1

I don’t know how to send pics of my gear, I will tell you guys
Here’s my gear:
Darksteel Blade
Steel Striker
Worn dragonplate
Obsidian helmet
Fine telephoto glasses
Boots of jumping
Dynamic Flag
Engraved wristwatch
Polished Agate Sense Stone

My hero is around 2000 hp, but she always die to the clone at last when the clone is around 250 hp left.

What should I do? Should I get better sword, better shield, or better code? Please help me?

P. S. I am new to this.
Mod edit: please don’t ask for likes, (if it’s just to go up trust levels or get badges.)

1 Like

I don’t know about warriors but try to kill your clone first or use wizard and castshockwave

if you can try to heal your hero

I didn’t subscribe and I don’t have boss star 4 to summon paladins to heal me

Remember that the clone can’t use special abilities… Why not use the cleave sword? Getting a:

Won’t make any difference as your clone will have the same equipment. In fact I recommend using slightly worse equipment than you usually use so it’s easier to kill your clone with your special abilities.
Danny

i skiped right to obsidian and dragon armor, so my only worse armor is painted steel plate and tarnished bronze helmet

ok i’ll try cleave, thx

Yay i did it without even having to cleave! THX!

NOOOOOO!!! The seed is bad, i failed even if i cleave. WHAT DO I DO!!! WAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!!

plz, @Deadpool198, some tips?

if the seed is bad try again or improve your code

i resummited like 17 times and the seed is still bad, and one is so trash that the enemy clone survived with over 2500 health.
I will try to improve my code

Try and cleave the archers first?

k, i will, nice tip.

YAY I DID IT!! Thx so much!!!

UM… I couldn’t beat it on my other account.

hero.moveXY(80, 70)
while True:
    enemy = hero.findNearestEnemy()
    while enemy and enemy.type == 'archer':
        if hero.canCast("chain-lightning", enemy):
            hero.cast("chain-lightning", enemy)
        elif hero.isReady("bash"):
            hero.bash(enemy)
        elif hero.canCast("drain-life", enemy):
            hero.cast("drain-life", enemy)
        else:
            hero.attack(enemy)
    if enemy and enemy.type != 'archer':
        break

if hero.health < 400:
    hero.moveXY(40, 85)
    continue

while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        if hero.canCast("chain-lightning", enemy):
            hero.cast("chain-lightning", enemy)
        elif hero.isReady("bash"):
            hero.bash(enemy)
        else:
            hero.attack(enemy)

My hero won’t move after it kills all archers but I want the hero to retreat then when it regens to 400 health, then attack

Heres my equipment:

Anyone have some tips? If so, please help!

Using a shield with very good bash can help because the clone can’t use bash. Having a weaker sword can also help. For me, it worked to initialize enemy to findNearestEnemy, then change it to the nearest archer if the nearest archer was less than 15 away & the nearest enemy was more than 5 away, then change it to the enemy hero if the enemy hero was less than 17 away. It also helps to ignore enemies of type “sand-yak” It can also help to use the cleave sword, rather than the basic one because you can damage multiple enemies with cleave. It can help to use glasses that can do findNearest on specific types of enemies.

I just know why he isn’t retreating after he kills all archers and the clone. I always get rekt by the last few ogres.

ok(glad you solved it @JustinB )