Hero isn't attacking in Kithgard brawl


#1

My code is a simple code:
enemy = hero.findNearestEnemy()
while True:
hero.attack(enemy)

I don’t care about items, I just want to beat the level.


#2

Put
enemey = hero.findNearestEnemy() Below your while True: statement

Not sure about your language but also my while true: statement is while(true) {...}


#3

Format your code properly. You have no loop, and you need to indent.