# \[SOLVED \]Issues with Taunting level in Backwoods forest

**URL:** <https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614>\
**Category:** Level Help\
**Created:** [April 11, 2022, 3:35pm UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614 "2022-04-11T15:35:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeeLand\_Teeslink](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/leeland_teeslink/32/11798_2.png) [@LeeLand\_Teeslink](https://discourse.codecombat.com/u/LeeLand_Teeslink)\
**Post date:** [April 11, 2022, 3:35pm UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614/1 "2022-04-11T15:35:37Z")

</div>

I’m playing the level with the brawlers you have to lead into the mines and I can only get one of the three to walk over into them. Can someone read over my code and read what’s wrong? thank you!

 ![Screenshot 2022-04-11 10.31.33 AM](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/d/2/d26d15ac80d51de11baa6f49d3b47a5d37e8b40a.png)

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [April 11, 2022, 3:38pm UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614/2 "2022-04-11T15:38:46Z")

</div>

Hmmm, we have almost the exact same code and my result is success… the only thing different in mine is that I use `let` and not `var`, try that, because `var` behaves weirdly sometimes…

---

<div class="post-metadata">

**Author:** ![LeeLand\_Teeslink](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/leeland_teeslink/32/11798_2.png) [@LeeLand\_Teeslink](https://discourse.codecombat.com/u/LeeLand_Teeslink)\
**Post date:** [April 11, 2022, 3:43pm UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614/3 "2022-04-11T15:43:09Z")

</div>

Ok, if this helps show my code easier here is this

```python
// Attack munchkins, call brawlers and ignore burls.

// This function defines the hero's behaviour about enemies.
function dealEnemy(enemy) {
    // If enemy.type is "munchkin":
    if (enemy.type == "munchkin") {
      
    
        // Then attack it:
        hero.attack(enemy);
    }    
    // If the enemy's type is "brawler":
    if (enemy.type == "brawler") {
     
        
    
        // Then say something to call the brawler:
         hero.say("hey you");
    }
}

while (true) {
    var enemy = hero.findNearestEnemy();
    if (enemy) {
        dealEnemy(enemy);
    }
    else {
        hero.moveXY(30, 34);
    }
}

```

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [April 11, 2022, 3:44pm UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614/4 "2022-04-11T15:44:02Z")

</div>

Yeah, it’s almost the exact same, just keep submitting until it works I guess

---

<div class="post-metadata">

**Author:** ![LeeLand\_Teeslink](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/leeland_teeslink/32/11798_2.png) [@LeeLand\_Teeslink](https://discourse.codecombat.com/u/LeeLand_Teeslink)\
**Post date:** [April 11, 2022, 3:50pm UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614/5 "2022-04-11T15:50:41Z")

</div>

```python
<iframe src="https://drive.google.com/file/d/1rnr57cbirk8mf4ioGx9v3m9HauDYMEBN/preview" width="640" height="480"></iframe>

```

---

<div class="post-metadata">

**Author:** ![LeeLand\_Teeslink](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/leeland_teeslink/32/11798_2.png) [@LeeLand\_Teeslink](https://discourse.codecombat.com/u/LeeLand_Teeslink)\
**Post date:** [April 11, 2022, 3:52pm UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614/6 "2022-04-11T15:52:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![LeeLand\_Teeslink](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/leeland_teeslink/32/11798_2.png) [@LeeLand\_Teeslink](https://discourse.codecombat.com/u/LeeLand_Teeslink)\
**Post date:** [April 11, 2022, 3:56pm UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614/7 "2022-04-11T15:56:15Z")

</div>

It’s working now idk what was wrong…

---

<div class="post-metadata">

**Author:** ![cheddarcheese](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/cheddarcheese/32/22417_2.png) [@cheddarcheese](https://discourse.codecombat.com/u/cheddarcheese)\
**Post date:** [April 12, 2022, 11:39pm UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614/8 "2022-04-12T23:39:13Z")

</div>

could you please mark whichever post helped the most as solved? that way no one can reply to it and it becomes locked.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/a9445509d1a758c41b5ddcddc8c8e20a5dedb67f.png) [@system](https://discourse.codecombat.com/u/system)\
**Post date:** [April 13, 2022, 11:39am UTC](https://discourse.codecombat.com/t/solved-issues-with-taunting-level-in-backwoods-forest/32614/9 "2022-04-13T11:39:36Z")

</div>

Closed on April 13, 2022, 11:39am UTC

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
