# Help on Make Advances

**URL:** <https://discourse.codecombat.com/t/help-on-make-advances/15300>\
**Category:** Uncategorized\
**Created:** [July 22, 2018, 5:53pm UTC](https://discourse.codecombat.com/t/help-on-make-advances/15300 "2018-07-22T17:53:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Galaqsam](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Galaqsam](https://discourse.codecombat.com/u/Galaqsam)\
**Post date:** [July 22, 2018, 5:53pm UTC](https://discourse.codecombat.com/t/help-on-make-advances/15300/1 "2018-07-22T17:53:57Z")

</div>

Hi everyone!  
I’m currently doing the “Make Advances” level. Everything is fine, except for the fact that my paladins don’t shield.  
Can somebody tell me what the problem is ?  
Thank you in advance !

(The language I use is Javascript)

```python
// Advance through the forgotten tomb.
// Be wary, traps lay in wait to ruin your day!

// The Paladins volunteer to lead the way.
// Command them to shield against incoming projectiles.
while(true) {
    var friends = hero.findFriends();
    // findEnemyMissiles finds all dangerous projectiles.
    var projectiles = hero.findEnemyMissiles();
    for(var i = 0; i < friends.length; i++) {
        var friend = friends[i];
        if(friend.type == "paladin") {
            // Find the projectile nearest to the friend:
            var projectile = friend.findNearest(projectiles);
            // If the projectile exists
            // AND is closer than 10 meters to the paladin:
            if (projectile && friend.distanceTo(projectile) < 10) {
                // Command the friend to "shield":
                hero.command(friend, "shield");
                }
            // ELSE, when there is no potential danger:
            else {
                // Advance the paladin:
                hero.command(friend, "move", {x:friend.pos.x+66,y:friend.pos.y});}
        } else {
            // If not a paladin, just advance:
            hero.command(friend, "move", {x:friend.pos.x+81,y:friend.pos.y});
        }
    }
    // Advance the hero in the x direction:
    hero.moveXY(112, 34);
}

```

---

<div class="post-metadata">

**Author:** ![Archion](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/archion/32/26234_2.png) [@Archion](https://discourse.codecombat.com/u/Archion)\
**Post date:** [July 22, 2018, 6:01pm UTC](https://discourse.codecombat.com/t/help-on-make-advances/15300/2 "2018-07-22T18:01:44Z")

</div>

Could uo pls format your code using 3 backtics like this ```

---

<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 22, 2018, 10:35pm UTC](https://discourse.codecombat.com/t/help-on-make-advances/15300/3 "2018-07-22T22:35:28Z")

</div>

I corrected the single **&** on

```python
if (projectile & friend.distanceTo(projectile) < 10)

```

but till now struggle to find why the bottom paladin dies.

---

<div class="post-metadata">

**Author:** ![Galaqsam](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Galaqsam](https://discourse.codecombat.com/u/Galaqsam)\
**Post date:** [July 22, 2018, 11:10pm UTC](https://discourse.codecombat.com/t/help-on-make-advances/15300/4 "2018-07-22T23:10:26Z")

</div>

Thanks  
I didn’t notice
