I’ve tried many different strategies, but i just can’t seem to get past!
here is my code…
# You'll need good strategy to win this one!
# Your clone will have the same equipment you have!
# But, they're not very skilled at using special powers.
while True:
enemy = hero.findNearestEnemy()
distance = self.distanceTo(enemy)
flag = hero.findFlag()
if enemy.type != "sand-yak" and self.isReady("bash"):
hero.bash(enemy)
elif enemy.type != "sand-yak":
hero.attack(enemy)
if self.health <= self.maxHealth/2.2:
flag = hero.findFlag()
hero.shield()
if flag:
hero.jumpTo(flag)
hero.pickUpFlag(flag)
hero.shield()
elif distance < 10 and enemy.type != "sand-yak":
hero.shield()
if hero.isReady("bash") and enemy.type != "sand-yak" and enemy.health > 0:
hero.bash(enemy)
elif enemy.type != "sand-yak" and enemy.health > 0:
hero.attack(enemy)
and here is my gear
PLZ HELP!