This hasn’t been working, even though I am using the python format the computer gives me.
What I do:
enemy = hero.findNearestEnemy()
if enemy:
ready = hero.isReady("cleave")
hero.cleave(enemy)
else:
ready = hero.isReady("cleave")
hero.attack(enemy)
hero.attack(enemy)
What the computer tells me to do:
enemy = hero.findNearestEnemy()
# Use an if-statement with isReady to check "cleave":
# Cleave!
# Else, if cleave is not ready:
# Attack the nearest ogre!
I’m pretty sure I’m doing it the correct way, but I don’t know. Can anyone help me?