# Need help on Taunting\[SOLVED\]

**URL:** https://discourse.codecombat.com/t/need-help-on-taunting-solved/26427
**Category:** Level Help
**Created:** [January 7, 2021, 9:08pm UTC](https://discourse.codecombat.com/t/need-help-on-taunting-solved/26427 "2021-01-07T21:08:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![calvin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/calvin/32/17585_2.png) [@calvin](https://discourse.codecombat.com/u/calvin)
#### Post date: [January 7, 2021, 9:08pm UTC](https://discourse.codecombat.com/t/need-help-on-taunting-solved/26427/1 "2021-01-07T21:08:14Z")

</div>

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

# This function defines the hero's behaviour about enemies.
def dealEnemy(enemy):
    # If enemy.type is "munchkin":
    
        # Then attack it:
        
    # If the enemy's type is "brawler":
    
        # Then say something to call the brawler:
        
    pass

while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        dealEnemy(enemy)
    else:
        hero.moveXY(30, 34)

```

---

<div class="post-metadata">

### Author: ![calvin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/calvin/32/17585_2.png) [@calvin](https://discourse.codecombat.com/u/calvin)
#### Post date: [January 7, 2021, 9:12pm UTC](https://discourse.codecombat.com/t/need-help-on-taunting-solved/26427/2 "2021-01-07T21:12:07Z")

</div>

i really need help

---

<div class="post-metadata">

### Author: ![abc](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@abc](https://discourse.codecombat.com/u/abc)
#### Post date: [January 7, 2021, 9:15pm UTC](https://discourse.codecombat.com/t/need-help-on-taunting-solved/26427/4 "2021-01-07T21:15:54Z")

</div>

> [@calvin](#):
>
> ```python
> # If enemy.type is "munchkin":
>     
> # Then attack it:
>         
> # If the enemy's type is "brawler":
>     
> # Then say something to call the brawler:
>         
> 
> ```

You just have to do what it says like this:

```python
if enemy.type == "munchkin":
    #attack the munchkin with hero.attack()
if enemy.type == "brawler":
    #say something to the brawler with hero.say()

```

---

<div class="post-metadata">

### Author: ![calvin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/calvin/32/17585_2.png) [@calvin](https://discourse.codecombat.com/u/calvin)
#### Post date: [January 7, 2021, 9:16pm UTC](https://discourse.codecombat.com/t/need-help-on-taunting-solved/26427/5 "2021-01-07T21:16:20Z")

</div>

i just finished it

---

<div class="post-metadata">

### Author: ![abc](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@abc](https://discourse.codecombat.com/u/abc)
#### Post date: [January 7, 2021, 9:17pm UTC](https://discourse.codecombat.com/t/need-help-on-taunting-solved/26427/6 "2021-01-07T21:17:06Z")

</div>

Great!

---

<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: [January 8, 2021, 9:17am UTC](https://discourse.codecombat.com/t/need-help-on-taunting-solved/26427/7 "2021-01-08T09:17:07Z")

</div>

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