Kelvintaph Defiler

I have a problem again, could you help me to solve it?

Kelvintaph Defiler “python”

hero.moveXY(34, 22)
while True:
    for friend in hero.findFriends():
        enemy = friend.findNearestEnemy()
        if friend.type == "paladin":
            if friend.canCast("heal"):
                hero.command(friend, "cast","heal",friend)
                if enemy:
                    hero.command(friend, "attack", enemy)

What’s the problem?

What does the error box say?

My paladin died soon, and I don’t know what to do.

you should command your other friends to attack too

sry for late reply

My soldiers can attack, but I don’t know how to run away before the Paladin is caught by the wizard.

@Chaboi_3000 This topic was already public: Kelvintaph Defiler "python"