# Clash of Clones: Help!

**URL:** <https://discourse.codecombat.com/t/clash-of-clones-help/29562>\
**Category:** Level Help\
**Created:** [July 7, 2021, 10:37pm UTC](https://discourse.codecombat.com/t/clash-of-clones-help/29562 "2021-07-07T22:37:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadowlink078](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/shadowlink078/32/22853_2.png) [@shadowlink078](https://discourse.codecombat.com/u/shadowlink078)\
**Post date:** [July 7, 2021, 10:37pm UTC](https://discourse.codecombat.com/t/clash-of-clones-help/29562/1 "2021-07-07T22:37:07Z")

</div>

I cannot figure out how to get past this. I’ve tried fully automating it and using flags, but it nothing seems to work. Any ideas? Here’s my equipment.

 ![Screenshot (66)](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/c/2/c23ee308854c4f7b1ba67bbe175166f462ceeac0.png)

---

<div class="post-metadata">

**Author:** ![Eric\_Tang](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/eric_tang/32/15310_2.png) [@Eric\_Tang](https://discourse.codecombat.com/u/Eric_Tang)\
**Post date:** [July 7, 2021, 10:42pm UTC](https://discourse.codecombat.com/t/clash-of-clones-help/29562/2 "2021-07-07T22:42:53Z")

</div>

Well first you have to paste your code.

---

<div class="post-metadata">

**Author:** ![shadowlink078](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/shadowlink078/32/22853_2.png) [@shadowlink078](https://discourse.codecombat.com/u/shadowlink078)\
**Post date:** [July 7, 2021, 10:44pm UTC](https://discourse.codecombat.com/t/clash-of-clones-help/29562/3 "2021-07-07T22:44:55Z")

</div>

```python
while True:
    enemy = hero.findNearestEnemy()
    flag = hero.findFlag()
    if flag:
        hero.move(flag.pos)
        hero.buildXY("bear-trap", flag.pos.x, flag.pos.y)
        hero.removeFlag(flag)
    elif enemy.type != 'sand-yak':
        hero.attack(enemy)
    

```

This is just one example.

---

<div class="post-metadata">

**Author:** ![shadowlink078](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/shadowlink078/32/22853_2.png) [@shadowlink078](https://discourse.codecombat.com/u/shadowlink078)\
**Post date:** [July 7, 2021, 10:45pm UTC](https://discourse.codecombat.com/t/clash-of-clones-help/29562/4 "2021-07-07T22:45:51Z")

</div>

```python
while True:
    enemy = hero.findNearestEnemy()
    flag = hero.findFlag()
    if flag:
        hero.pickUpFlag(flag)
    elif enemy and hero.isReady("cleave"):
        hero.cleave(enemy)
    elif enemy:
        hero.attack(enemy)

```

Another example.

---

<div class="post-metadata">

**Author:** ![shadowlink078](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/shadowlink078/32/22853_2.png) [@shadowlink078](https://discourse.codecombat.com/u/shadowlink078)\
**Post date:** [July 7, 2021, 10:54pm UTC](https://discourse.codecombat.com/t/clash-of-clones-help/29562/5 "2021-07-07T22:54:12Z")

</div>

This too.

```python
while True:
    enemy = hero.findNearestEnemy()
    if enemy and hero.isReady("cleave"):
        hero.cleave(enemy)
    elif hero.health <= 200:
        hero.move(37, 28)
        hero.consecrate()
    elif enemy:
        hero.attack(enemy)

```

---

<div class="post-metadata">

**Author:** ![Eric\_Tang](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/eric_tang/32/15310_2.png) [@Eric\_Tang](https://discourse.codecombat.com/u/Eric_Tang)\
**Post date:** [July 7, 2021, 11:54pm UTC](https://discourse.codecombat.com/t/clash-of-clones-help/29562/6 "2021-07-07T23:54:24Z")

</div>

Well which code are you using.

---

<div class="post-metadata">

**Author:** ![shadowlink078](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/shadowlink078/32/22853_2.png) [@shadowlink078](https://discourse.codecombat.com/u/shadowlink078)\
**Post date:** [July 8, 2021, 1:59am UTC](https://discourse.codecombat.com/t/clash-of-clones-help/29562/7 "2021-07-08T01:59:19Z")

</div>

Currently the Bear-trap one.

---

<div class="post-metadata">

**Author:** ![RangerGrant9307](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rangergrant9307/32/26001_2.png) [@RangerGrant9307](https://discourse.codecombat.com/u/RangerGrant9307)\
**Post date:** [July 8, 2021, 2:19pm UTC](https://discourse.codecombat.com/t/clash-of-clones-help/29562/8 "2021-07-08T14:19:19Z")

</div>

I recommend using a terrible sword, but using good shields that have good amounts of bash damage.  
Use special abilities, as your clone’s code is just while true, attack.  
Or, use the long sword, and cleave when ever you can.  
Aim for shamans first, as they do high area damage, and can cast grow, which makes something huge and doubles it’s health.  
Then, aim for the archers, as if you ignore them, they can tear holes in your lines.  
Hope this helps.
