# Help with Clash of Clones

**URL:** <https://discourse.codecombat.com/t/help-with-clash-of-clones/14898>\
**Category:** Uncategorized\
**Created:** [June 5, 2018, 3:22pm UTC](https://discourse.codecombat.com/t/help-with-clash-of-clones/14898 "2018-06-05T15:22:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![xython](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xython/32/7269_2.png) [@xython](https://discourse.codecombat.com/u/xython)\
**Post date:** [June 8, 2018, 12:17am UTC](https://discourse.codecombat.com/t/help-with-clash-of-clones/14898/4 "2018-06-08T00:17:08Z")

</div>

If you search enemy hero read [Easiest way to select the enemy hero](https://discourse.codecombat.com/t/easiest-way-to-select-the-enemy-hero/3799/8).  
Function **findStrongestEnemy** will return unexpected result. Try it yourself

```python
while (true){
    var enemy = hero.findEnemies(); // obvious error 
    var leader = findStrongestEnemy(enemy);
    pet.say(leader);
    if(leader){
        hero.attack(leader);
    }
}

```

---

_[View the full topic](https://discourse.codecombat.com/t/help-with-clash-of-clones/14898)._
