# Kelvintaph burgler

My advice : Go back, redo some levels, refresh your memory. And then read the hints/comments. It explains. But there is some level of creativity required.

I suggest trying to use the algorithm from the first Glacier level, called Circle Walking. You can use this on the projectiles.

I have a new code, but how can I kill the chieftain?

``````def Firstcommand():
friends=hero.findFriends()
for friend in friends:
hero.command(friend,"move",{"x":54,"y":38})
if friend.distanceTo({"x":54,"y":38})<5:
return True
return False

def Secondcommand():
friends=hero.findFriends()
for friend in friends:
witch=hero.findByType("witch")[0]
if witch:
hero.command(friend,"attack",witch)
else:
enemy=friend.findNearestEnemy()
if enemy and enemy.pos.x>50:
hero.command(friend,"attack",enemy)
if friend.canCast("heal") and friend.health<300:
self.command(friend,"cast","heal",friend)
a=False
while True:
if hero.pos.y<10:
hero.moveXY(hero.pos.x,hero.pos.y+11)
center=hero.findEnemyMissiles()[0]
partner=hero.findEnemyMissiles()[1]
if center and partner:
maxix=(center.pos.x+partner.pos.x)/2
maxiy=(center.pos.y+partner.pos.y)/2
if hero.pos.x<maxix:
hero.move({"x":maxix,"y":maxiy-10})

elif center:
hero.move({"x":center.pos.x,"y":center.pos.y-10})
elif partner:
hero.move({"x":partner.pos.x,"y":partner.pos.y-10})
else:
hero.move({"x":14,"y":14})
if not a:
a=Firstcommand()
else:
Secondcommand()
``````

can you help me?
I’ve kill the witch but I can’t kill the chieftain.

The only ally you really need for this is the paladin. Your paladin should lure the chieftain to the ice yak. After the chieftain is dead, the paladin can kill the witch on her own (or you could use your other allies at this point - keep in mind there’s a bonus for keeping all allies alive).

1 Like

ok thank you