do something like this
while True:
enemy = hero.findNearestEnemy()
if enemy:
if hero.isReady("cleave"):
#cleave
else:
#attack
do something like this
while True:
enemy = hero.findNearestEnemy()
if enemy:
if hero.isReady("cleave"):
#cleave
else:
#attack
Isnāt that what I did?
Look up there and down here:
Can you see the differences?
No? I know you want to hear yes but I just donāt see it!
Look at the indentations and look at the if statements. Do you see any else statements in your original code?
Omfg I THINK IāVE GOT IT!!!
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.
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.