# Help on Kithgard Brawl

**URL:** <https://discourse.codecombat.com/t/help-on-kithgard-brawl/11687>\
**Category:** Uncategorized\
**Created:** [June 12, 2017, 2:50pm UTC](https://discourse.codecombat.com/t/help-on-kithgard-brawl/11687 "2017-06-12T14:50:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke10](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/luke10/32/19892_2.png) [@Luke10](https://discourse.codecombat.com/u/Luke10)\
**Post date:** [June 12, 2017, 2:50pm UTC](https://discourse.codecombat.com/t/help-on-kithgard-brawl/11687/1 "2017-06-12T14:50:02Z")

</div>

Hey guys I am having trouble on Kithgard Brawl. It says I need to check to see if there is an enemy but as you will see in my code, I have already done that. Some pointers will be appreciated.

```python
while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        if hero.isReady("cleave"):
            hero.cleave(enemy)

    else:
        hero.attack(enemy)

```

---

<div class="post-metadata">

**Author:** ![RobAnybody](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@RobAnybody](https://discourse.codecombat.com/u/RobAnybody)\
**Post date:** [June 12, 2017, 3:28pm UTC](https://discourse.codecombat.com/t/help-on-kithgard-brawl/11687/2 "2017-06-12T15:28:12Z")

</div>

Bottom 2 lines. You need to add one more tab to them.

---

<div class="post-metadata">

**Author:** ![Hellenar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/hellenar/32/9100_2.png) [@Hellenar](https://discourse.codecombat.com/u/Hellenar)\
**Post date:** [June 12, 2017, 9:50pm UTC](https://discourse.codecombat.com/t/help-on-kithgard-brawl/11687/3 "2017-06-12T21:50:55Z")

</div>

Your else statement is lined up with `if enemy:`. Try lining it up with `if hero.isReady("cleave"):`.

---

<div class="post-metadata">

**Author:** ![Luke10](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/luke10/32/19892_2.png) [@Luke10](https://discourse.codecombat.com/u/Luke10)\
**Post date:** [June 17, 2017, 10:39pm UTC](https://discourse.codecombat.com/t/help-on-kithgard-brawl/11687/4 "2017-06-17T22:39:32Z")

</div>

Thanks guys. I’ll be sure to try that
