# Endangered Burl - Update?

**URL:** <https://discourse.codecombat.com/t/endangered-burl-update/2686>\
**Category:** Uncategorized\
**Created:** [February 13, 2015, 6:06am UTC](https://discourse.codecombat.com/t/endangered-burl-update/2686 "2015-02-13T06:06:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiNo85](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@MiNo85](https://discourse.codecombat.com/u/MiNo85)\
**Post date:** [February 13, 2015, 6:06am UTC](https://discourse.codecombat.com/t/endangered-burl-update/2686/1 "2015-02-13T06:06:21Z")

</div>

I am having trouble with the “Endangered Burl” level. My code that I entered is below. In short, my charcter won’t even move. I’ve been stuck for a few days now. Can anyone help? Many thinks in advance.

```
  loop:

    enemy = self.findNearestEnemy()
    if enemy:
        if enemy.type is 'munchkin':
            self.attack(enemy)
        elif enemy.type is 'thrower':
            self.attack(enemy)
        elif enemy.type is 'burl':
            self.moveXY(22, 47)
        else:
            self.say("I'm never going near that thing.")
    else:
        pass
```

---

<div class="post-metadata">

**Author:** ![J\_F\_B\_M](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/j_f_b_m/32/2756_2.png) [@J\_F\_B\_M](https://discourse.codecombat.com/u/J_F_B_M)\
**Post date:** [February 13, 2015, 3:04pm UTC](https://discourse.codecombat.com/t/endangered-burl-update/2686/2 "2015-02-13T15:04:36Z")

</div>

Try to use `self.say(enemy.type)` and see if this type matches any of the types you specified. Be aware that Upper-/lowercase matters.

---

<div class="post-metadata">

**Author:** ![MiNo85](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@MiNo85](https://discourse.codecombat.com/u/MiNo85)\
**Post date:** [February 13, 2015, 8:29pm UTC](https://discourse.codecombat.com/t/endangered-burl-update/2686/3 "2015-02-13T20:29:26Z")

</div>

Thank you for your help. After I followed your advice, I was given an error message that I had not equipped the proper glasses to find my nearest enemy.

Onward and upward!

---

<div class="post-metadata">

**Author:** ![J\_F\_B\_M](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/j_f_b_m/32/2756_2.png) [@J\_F\_B\_M](https://discourse.codecombat.com/u/J_F_B_M)\
**Post date:** [February 13, 2015, 11:32pm UTC](https://discourse.codecombat.com/t/endangered-burl-update/2686/4 "2015-02-13T23:32:43Z")

</div>

Advanced glasses need `self.findNearest(self.findEnemies())` (similar for items).
