Hello fellow code combatants,
I’m using Python, and have reached the Backwoods Standoff level. After several unsuccessful tries I present the unknown problem to you.
Thank you in advance.
Here is my code:
while True:
enemy = hero.findNearestEnemy()
# Use an if-statement with isReady to check “cleave”:
if enemy:
# Cleave!
ready = hero.isReady("cleave")
hero.isReady("cleave")
# Else, if cleave is not ready:
else:
# Attack the nearest ogre!
hero.attack(enemy)