[SOLVED] Help on Kelvintaph Crusader

Ok. Thank you very much!

1 Like

I finished the level. Thanks for help!

1 Like

ok you guys were a great help in binary deployment so I hope you can help with this.

    for friend in friends:
        if friend.type != "decoy":
            if friend.type =="paladin":
                enemy = friend.findNearest(hero.findByType("skeleton"))
                
                hero.command(friend, "attack", enemy)
                
                
                
                
            if friend.type == "archer":
                enemy = friend.findNearestEnemy()
                hero.command(friend, "attack", enemy)
                
            if friend.type == "soldier":
                witch = friend.findNearest(hero.findByType("witch"))
                
                if witch and witch.health < 0:
                    hero.say("bob")
                    hero.command(friend, "attack", witch)
                

so this is my friend fight code but no matter who I Target all my guys die so can I have some help getting one to live

Try to make your own code and then we will gladly help you.

Andrei

1 Like