Kelvintaph Defiler "python"

I’m stuck again, can anyone help me
This my code.

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)
            else:
                if enemy:
                    hero.command(friend, "attack", enemy)

What the error box say?

I don’t know how to keep the Paladin alive,
What is the error box?

it gives an error when you make an error. but you haven’t made any so you’re fine

Thank you.
I know.
How can I make the paladin not die?

What are the functions of the Paladin

You could cast the undying charm on it when it’s health is less than 100 with the undying ring.

What is the immortal spell

buy the undying ring in the shop

it costs 1300 gems (i think)

Thanks, I solved it.

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.