Hi everyone, can’t figure why my hero cleaves but then doesn’t seem to attack inbetween…i’m sures there’s a problem with my if statements but can’t see it
self.wait(1)
loop:
flag = self.findFlag()
enemy = self.findNearest(self.findEnemies())
if flag:
self.pickUpFlag(flag)
pass
elif enemy:
if self.distanceTo(enemy)<7:
if self.isReady("cleave"):
self.cleave(enemy)
else:
self.attack(enemy)
Thanks in advance for all your help