Level: Leave It To Cleaver Help (solved)

Hello,

To help us see the formatting of the code, please review the link below to show you how to post your code with the formatting. That being said, I see a problem with your code.

ready = hero.isReady(“cleave”) # this should be an if statement not a variable

Your hero is waiting until the cleave is ready instead of attacking the nearest enemy.

Also, you should be using the variable target and not enemy in the function since that is the parameter provided.

hero.cleave(target)
hero.attack(target)