This is my code. The character won’t move to the flag to pick it up.
# Help your friends beat the minions that Thoktar sends against you. # You'll need great equipment and strategy to win. # Flags might help, but it's up to you–be creative! # There is a doctor behind the fence. Move to the X to get healed! flag = hero.findflag("green") enemy = hero.findNearestEnemy() while True: if flag: hero.pickUpFlag(flag) elif enemy: if hero.isReady("cleave"): hero.cleave(enemy) else: hero.attack(enemy) pass