Help: Woodland Cleaver

do something like this

while True:
    enemy = hero.findNearestEnemy()   
   if enemy:
       if hero.isReady("cleave"):
        #cleave
      else:
        #attack
1 Like

Isn’t that what I did?

1 Like

Look up there and down here:

Can you see the differences?

1 Like

No? I know you want to hear yes but I just don’t see it!

1 Like

Look at the indentations and look at the if statements. Do you see any else statements in your original code?

1 Like

Omfg I THINK I’VE GOT IT!!!

1 Like

If you have solved it, tick the solution box next to the post that helped you the most, if you haven’t solved it, post your code here for more help.

2 Likes

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.