[SOLVED] Backwoods Standoff help! First Post

hello i need some help!
heres my code
while True:
enemy = hero.findNearestEnemy()
# Use an if-statement with isReady to check “cleave”:
if enemy:
ready = hero.isReady(“cleave”)
# Cleave!
hero.cleave(enemy)
# Else, if cleave is not ready:
else:
enemy = hero.findNearestEnemy()
hero.attack(enemy)

Please format your code.

You don’t need the bottom enemy = hero.findNearestEnemy Because you have one at the top.

Also, is that how you indented it in your actual code?