Okay, you probably did but I can’t tell if ou indented your code or not so that could be the problem.
Also “hero” and “self” are the same thing so it would be nice if you used one and not both. I recommend “hero” because it changes your view as a person who is controlling the hero, not the hero themself.
On line 4 I see
and I don’t see any reason for it to be there you would delete it
and you should put your enemy variable before the
because python reads from top to bottom and if you don’t do that it will just input null and the program will stop there most likely.
Also on line 6 there is
ready = hero.isReady("cleave")
has no use so that should also be deleted
And you don’t have to but when I do it most of the time I would use an if else statement.
sorry if that was too long I am in a bad mood.