# \[SOLVED\] Help on Clash of Clones \[SOLVED\]

**URL:** <https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247>\
**Category:** Level Help\
**Created:** [July 26, 2020, 6:41pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247 "2020-07-26T18:41:44Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![LunaFromTheMoon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lunafromthemoon/32/37747_2.png) [@LunaFromTheMoon](https://discourse.codecombat.com/u/LunaFromTheMoon)\
**Post date:** [July 26, 2020, 6:41pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/1 "2020-07-26T18:41:44Z")

</div>

```python
# You'll need good strategy to win this one!
# Your clone will have the same equipment you have!
# But, they're not very skilled at using special powers.
while True:
    enemy = hero.findNearestEnemy()
    flag = hero.findFlag("green")
    if flag:
        hero.pickUpFlag(flag)
    else:
        if enemy.type != "sand-yak":
            if hero.isReady("bash"):
                hero.bash(enemy)

```

I keep dying, I’ve tried using worse armor and a worse sword and a good bash shield. Please help

---

<div class="post-metadata">

**Author:** ![Lydia\_Song](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lydia_song/32/31461_2.png) [@Lydia\_Song](https://discourse.codecombat.com/u/Lydia_Song)\
**Post date:** [July 26, 2020, 6:47pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/2 "2020-07-26T18:47:59Z")

</div>

Umm… You’ll need a lot more code than that. I recommend using armor and weapons that have special powers , like bash or cleave, or powerup.

---

<div class="post-metadata">

**Author:** ![Lydia\_Song](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lydia_song/32/31461_2.png) [@Lydia\_Song](https://discourse.codecombat.com/u/Lydia_Song)\
**Post date:** [July 26, 2020, 6:52pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/3 "2020-07-26T18:52:34Z")

</div>

I used Gordon for this level. HOpe It helps.

---

<div class="post-metadata">

**Author:** ![weary](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/weary/32/15122_2.png) [@weary](https://discourse.codecombat.com/u/weary)\
**Post date:** [July 27, 2020, 12:11am UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/4 "2020-07-27T00:11:35Z")

</div>

Can I see your equipments?

---

<div class="post-metadata">

**Author:** ![PeterPalov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/peterpalov/32/45280_2.png) [@PeterPalov](https://discourse.codecombat.com/u/PeterPalov)\
**Post date:** [July 27, 2020, 6:05am UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/5 "2020-07-27T06:05:27Z")

</div>

Yes, to this lvl you have to use “super powers”. And the best, I think is chain-lightning to archers. And if you have “jumpTo” you can jump to Clone and kill him before you kill other (soldiers and archers).  
And please, send us your equipment.  
Hope it helps

---

<div class="post-metadata">

**Author:** ![PeterPalov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/peterpalov/32/45280_2.png) [@PeterPalov](https://discourse.codecombat.com/u/PeterPalov)\
**Post date:** [July 27, 2020, 6:09am UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/6 "2020-07-27T06:09:33Z")

</div>

And to this level you HAVE TO write “def bestEnemy()”. And if you wrote them you wouldn’t attack yaks.

---

<div class="post-metadata">

**Author:** ![DimaP](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dimap/32/10613_2.png) [@DimaP](https://discourse.codecombat.com/u/DimaP)\
**Post date:** [July 27, 2020, 10:03am UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/7 "2020-07-27T10:03:37Z")

</div>

You can equip the best shield which you have and the worst sword, then go to enemy archers, and shield.

---

<div class="post-metadata">

**Author:** ![DimaP](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dimap/32/10613_2.png) [@DimaP](https://discourse.codecombat.com/u/DimaP)\
**Post date:** [July 27, 2020, 10:07am UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/8 "2020-07-27T10:07:24Z")

</div>

I mean something like that:

```python
hero.cast("invisibility",hero) #if you have invisibility ring
hero.moveXY(pos.x,pos.y) #central enemy archer.pos
while True:
    hero.shield()

```

---

<div class="post-metadata">

**Author:** ![DimaP](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dimap/32/10613_2.png) [@DimaP](https://discourse.codecombat.com/u/DimaP)\
**Post date:** [July 27, 2020, 10:12am UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/9 "2020-07-27T10:12:58Z")

</div>

If you have imeror gloves, you can cast chain-lightning enemy archers.

---

<div class="post-metadata">

**Author:** ![LunaFromTheMoon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lunafromthemoon/32/37747_2.png) [@LunaFromTheMoon](https://discourse.codecombat.com/u/LunaFromTheMoon)\
**Post date:** [July 27, 2020, 2:51pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/10 "2020-07-27T14:51:27Z")

</div>

I have Long Sword, Emperor’s Gloves, The Monolith, Steel Breastplate, and steel helmet

---

<div class="post-metadata">

**Author:** ![LunaFromTheMoon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lunafromthemoon/32/37747_2.png) [@LunaFromTheMoon](https://discourse.codecombat.com/u/LunaFromTheMoon)\
**Post date:** [July 27, 2020, 2:52pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/11 "2020-07-27T14:52:44Z")

</div>

I don’t have enough money for the precious, but I do have steel ring

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [July 27, 2020, 3:01pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/12 "2020-07-27T15:01:02Z")

</div>

Then try to jump near the archers and use chain lighting on them, then kill your clone and then the shamans and the other enemies.

Andrei

---

<div class="post-metadata">

**Author:** ![LunaFromTheMoon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lunafromthemoon/32/37747_2.png) [@LunaFromTheMoon](https://discourse.codecombat.com/u/LunaFromTheMoon)\
**Post date:** [July 27, 2020, 3:16pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/13 "2020-07-27T15:16:18Z")

</div>

Thanks. It worked 🙂

---

<div class="post-metadata">

**Author:** ![FalconX11\_312](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/falconx11_312/32/26330_2.png) [@FalconX11\_312](https://discourse.codecombat.com/u/FalconX11_312)\
**Post date:** [July 27, 2020, 3:18pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/14 "2020-07-27T15:18:13Z")

</div>

Get rid of this:

> [@LunaFromTheMoon](#):
>
> ```python
> if enemy.type != "sand-yak":
> if hero.isReady("bash"):
> hero.bash(enemy)
> 
> ```

Replace with something along the lines of:

```python
enemy = hero.findNearestEnemy()
        if enemy:
            hero.attack(enemy)

```

This MUST be inside the `if flag:` statement

The yak’s are too far away to be the nearest enemy. Also, try to kill your the archers and any shamans before killing the hero clone. Worked for me.

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [July 27, 2020, 3:19pm UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/15 "2020-07-27T15:19:26Z")

</div>

Anytime! And congratulations for completing the level! 🥳

Andrei

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/a9445509d1a758c41b5ddcddc8c8e20a5dedb67f.png) [@system](https://discourse.codecombat.com/u/system)\
**Post date:** [July 28, 2020, 3:19am UTC](https://discourse.codecombat.com/t/solved-help-on-clash-of-clones-solved/23247/16 "2020-07-28T03:19:31Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
