# Need help with Kelvintaph crusader

**URL:** <https://discourse.codecombat.com/t/need-help-with-kelvintaph-crusader/18910>\
**Category:** Level Help\
**Created:** [July 25, 2019, 6:13pm UTC](https://discourse.codecombat.com/t/need-help-with-kelvintaph-crusader/18910 "2019-07-25T18:13:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [July 25, 2019, 8:46pm UTC](https://discourse.codecombat.com/t/need-help-with-kelvintaph-crusader/18910/2 "2019-07-25T20:46:35Z")

</div>

The hint starts with: “// You can find friends through walls, **but not enemies.** ”

```python
hero.findByType("ogre") # will not work

```

Only your friends can find enemies. See Array.filter() and Array.find() in array section.

```python
function isOgre(enemy) {
  return enemy.type == 'ogre';
}
function isWitch(enemy) {
  return enemy.type == 'witch';
}
var friend = hero.findFriends()[0];
var enemies = friend.findEnemies();
var ogres = enemies.filter(isOgre);
var ogre = friend.findNearest(ogres);
var witch = enemies.find(isWitch);  
console.log(friend.id);
console.log(ogre.id);
console.log(witch.id);

```

The output in the console will be:

```python
Gorgin 
Oni
Yzzrith

```

If you want to command your friends individually see the post [How do I name my units?](https://discourse.codecombat.com/t/how-do-i-name-my-units/18781/6)

This also will not work:

```python
hero.command(friend, "move", { x: 50, y: 57 });
hero.command(friend, "move", {x: 50, y: 39});
hero.command(friend, "move", {x: 78, y: 40});

```

see:  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex016/uploads/codecombat/original/2X/b/b056cd6cb4343e8bfdc5e36d9f0dc3fd42f579de.jpeg)

---

_[View the full topic](https://discourse.codecombat.com/t/need-help-with-kelvintaph-crusader/18910)._
