Hey everyone
I’ve been struggling with this level for a while now.
Read all the posts here on this level - nothing works - please help!
Whatever I do my hero is not moving anywhare. sometimes it has a red X under it, sometimes it does’nt.
if I ask it to move to a point first thing then it moves and get stuck there.
It does’nt fight ememies at all - not in cleave nor the regular attack. doesn’t even try to move towards them.
posting my code here (I’ve tried like at least twenty ways, it’s just the most recent) -
enemy = hero.findNearestEnemy()
cleaving = hero.isReady("cleave")
if enemy and cleaving:
hero.cleave(enemy)
else:
hero.attack(enemy)
flag = self.findFlag("green")
if flag:
hero.pickUpFlag(flag)