# Is it a bug? or should I buy equipment to solve Ogre Encampment?

**URL:** <https://discourse.codecombat.com/t/is-it-a-bug-or-should-i-buy-equipment-to-solve-ogre-encampment/5571>\
**Category:** Uncategorized\
**Created:** [November 6, 2015, 9:11pm UTC](https://discourse.codecombat.com/t/is-it-a-bug-or-should-i-buy-equipment-to-solve-ogre-encampment/5571 "2015-11-06T21:11:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonanabc](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@bonanabc](https://discourse.codecombat.com/u/bonanabc)\
**Post date:** [November 6, 2015, 9:11pm UTC](https://discourse.codecombat.com/t/is-it-a-bug-or-should-i-buy-equipment-to-solve-ogre-encampment/5571/1 "2015-11-06T21:11:14Z")

</div>

Hi,guys,in this level I used a simple python statement as below:

```python
#loop:
# Enemy=self.findNearestEnemy()
# if Enemy:
# self.attack(Enemy)
# self.attack(Enemy) 
# else:
# self.attack('Chest')

```

but have a problem when a Enemy come from upward side, hero can not find him !  
I do not know if its a bug? or my programe have problem(I think its a low level,it should not be so hard)? or if I must buy good equipment to add health to go through with this level?  
Anybody could help me ?Thank you.

Problem solved: the reason is I dd not know the ‘say()’ have sustained effect.

---

<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:** [November 6, 2015, 9:21pm UTC](https://discourse.codecombat.com/t/is-it-a-bug-or-should-i-buy-equipment-to-solve-ogre-encampment/5571/2 "2015-11-06T21:21:36Z")

</div>

You need to indent the loop, the else, and the if statements

---

<div class="post-metadata">

**Author:** ![DevinIV1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/deviniv1/32/3105_2.png) [@DevinIV1](https://discourse.codecombat.com/u/DevinIV1)\
**Post date:** [November 7, 2015, 12:24am UTC](https://discourse.codecombat.com/t/is-it-a-bug-or-should-i-buy-equipment-to-solve-ogre-encampment/5571/3 "2015-11-07T00:24:15Z")

</div>

That, and format your code according to the FAQ

---

<div class="post-metadata">

**Author:** ![ChronistGilver](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chronistgilver/32/3778_2.png) [@ChronistGilver](https://discourse.codecombat.com/u/ChronistGilver)\
**Post date:** [November 7, 2015, 12:35am UTC](https://discourse.codecombat.com/t/is-it-a-bug-or-should-i-buy-equipment-to-solve-ogre-encampment/5571/4 "2015-11-07T00:35:21Z")

</div>

Hello, Hakonan, and welcome. Please read the FAQ prior to your next post,so that you can post your code with “radiant, harmonious formatting.” I’ve done it for you this time, but do so yourself in the future.

My only suggestion is to continue to submit. It will give you a random seed each time.

---

<div class="post-metadata">

**Author:** ![bonanabc](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@bonanabc](https://discourse.codecombat.com/u/bonanabc)\
**Post date:** [November 7, 2015, 6:57am UTC](https://discourse.codecombat.com/t/is-it-a-bug-or-should-i-buy-equipment-to-solve-ogre-encampment/5571/5 "2015-11-07T06:57:55Z")

</div>

Ok ,I will,Thank you.
