i run the code and it does everything right until i get to hero.cleave(enemy) it cleaves and then doesn’t go onto the else statement it just waits till cleave is ready again and never goes to else
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: it never goes to else
else:
hero.attack(enemy)
# Attack the nearest ogre!