I have had a lot of trouble with this block in the past, so i assume other people are having trouble with it to.
so, i used to think this peice of code will just cleave when its ready when you put it down, for example
but it does not work like this. Hero.isReady(“cleave”) is a IF statement. so try this
enemy = hero.findNearestEnemy()
if enemy: if hero.isReady("cleave"): hero.cleave(enemy) else: hero.attack(enemy)
that is how it works. hope this helped!