# Kithgard Brawl, first round help

**URL:** <https://discourse.codecombat.com/t/kithgard-brawl-first-round-help/10518>\
**Category:** Uncategorized\
**Created:** [February 11, 2017, 12:06am UTC](https://discourse.codecombat.com/t/kithgard-brawl-first-round-help/10518 "2017-02-11T00:06:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xTheatreTechiex](https://avatars.discourse-cdn.com/v4/letter/x/9fc348/32.png) [@xTheatreTechiex](https://discourse.codecombat.com/u/xTheatreTechiex)\
**Post date:** [February 11, 2017, 12:06am UTC](https://discourse.codecombat.com/t/kithgard-brawl-first-round-help/10518/1 "2017-02-11T00:06:34Z")

</div>

Figured i would start my character off easy, a simple attack until he died, and i could figure out where to improve my code fromthere, but every time in the game he stops attacking at around 15 seconds. it’s ticking me off, and some part of me thought maybe the potion spawning in the game would be causing it, but my character does still fight new enemies spawned for about 3 seconds after potion spawns.  
\<while True:  
enemy = hero.findNearestEnemy()  
hero.attack(enemy)  
hero.attack(enemy)

> 

it gives me an error of

\<Attacks argument enemy has a problem. is there an enemy in your line of sight?\>

---

<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:** [February 14, 2017, 10:18pm UTC](https://discourse.codecombat.com/t/kithgard-brawl-first-round-help/10518/2 "2017-02-14T22:18:39Z")

</div>

Please format your code according to the FAQ.

[https://discourse.codecombat.com/faq](https://discourse.codecombat.com/faq)

---

<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:** [February 17, 2017, 2:27pm UTC](https://discourse.codecombat.com/t/kithgard-brawl-first-round-help/10518/3 "2017-02-17T14:27:33Z")

</div>

I think you need an `if enemy:` before `hero.attack(enemy)`
