Https://codecombat.com/play/level/make-advances?

Hello everybody, somehow this level does not work for me. Can somebody have a look at it?

# Rück durch das vergessene Grab vor.
# Sei auf der Hut, die Fallen warten nur darauf, deinen TAg zu ruinieren!

# Die Paladine führen das Vorrücken freiwillig an.
# Befiel ihnen, sich gegen die Projektile abzuschirmen.
while True:
    friends = hero.findFriends()
    # findEnemyMissiles um alle gefährlichen gegnerischen Projektile zu finden.
    projectiles = hero.findEnemyMissiles()
    for friend in friends:
        if friend.type is "paladin":
            # Finde das Projektil, welches dem Freund am nächsten ist:
            projectile = friend.findNearest(projectiles)
            # Wenn das Projektil existiert
            # UND näher als 10 Meter zum Paladin ist:
            if projectile and  friend.distanceTo(projectile) < 15:
                # Gib den Befehl, den "shield" einzusetzen:
                hero.command(friend, "shield")
            # Ansonsten, wenn keine potenzielle Gefahr vorhanden ist:
            else:
                # Lass den Paladin vorrücken:
                x = friend.pos.x + 10
                y = friend.pos.y
                hero.command(friend, 'move', {'x': x, 'y': y})
            pass
        else:
            # Wenn nicht ein Paladin, rücke einfach vor:
            x = friend.pos.x + 10
            y = friend.pos.y
            hero.command(friend, 'move', {'x': x, 'y': y})
        pass
    # Lass den Helden in der X-Richtung vorrücken:
    hx = hero.pos.x +10
    hy = hero.pos.y 
    hero.moveXY( hx, hy  )

Hi, though I’m not an expert on this, maybe I can help you in the level. Can you tell me about the problems exactly?

1 Like

And also the CS level you are in.

1 Like

umm @Tsaibow this topic has been dead for 3 months…

Sorry, I’ll be back.

oh i didnt know you where still active…

At the moment I am not. :slight_smile: But I hope to return to Codecombat in Autumn.

yay! 20 charsssssssssssssssssssss

so r we back to the topic?
:sweat_smile:

bruh they alraedy said they would come back not now consdier this tpoic ded