[SOLVED] I need help with clash of clones here is code and armor(python)

def FindAndAttack() :
enemy = hero.findNearestEnemy()
if enemy and enemy.health > 0 and enemy.type != “sand-yak”:
hero.attack(enemy)
if hero.isReady(“cleave”):
hero.cleave(enemy)
else:
hero.shield()

while True:
flag = hero.findFlag(“green”)
if flag:
hero.moveXY(flag.pos.x, flag.pos.y)
hero.pickUpFlag(flag)
else:
FindAndAttack()
image

love the style were is the helmet how many gems do have

try getting a worn dragon scale helm or try using simple sword or emperors gloves

also please format your code properly

also

Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!

probably coudl’ve shown the welcome firts and then the rest, and @Garin_Schumann if you would can u send a link to the level so others can get to it easier? thanks.

Try getting THORNPRICK it reflects 5% of all damage done to you

1 Like

he does not know how to format his code properly

1 Like

if so @Garin_Schumann please view this topic

The link is this a.k.a the last level of Desert.
Lydia

Here is what I used image if it helps you.
Edit: Really all you need for this level is a weapon that has special abilities and semi-good armor.
My tips for you

  1. Target the enemy archers first as the archers do the most damage.
  2. If your hero’s health is less than 200, you’ll want to retreat to near the sand-yaks, but not too close to the sand-yaks. A good position would be 38,65
  3. I think you’ve learn Index already in Desert, so try to apply that. Or you can use a for-loop (if you know how).
  4. Try getting the Emperor Glove or the Precious, it can really help in this level.
    Lydia
2 Likes

I have 2273 gems is there anything helpful i can get with that

I got the thornpick now i have 2003

That is really all you need. save up for good equipment and hero’s

try getting worn dragon helm or obsidian helmet(not engraved)

1 Like

Try to move near archers and cleave there

maybe. try to go for worn dragonplate helm (if you can afford it)

1 Like

He can’t @Daniel_Gronky

this may or may not be a bug, but I noticed (as a ranger or a wizard, idk about warrior) I cannot directly attack the hero’s clone. but I can command friends with the boss star to attack the hero, and I can hit the enemy hero with chain lightning (after hitting another enemy with the attack)

1 Like

sorry, edited post (20 chars)

1 Like