# Help with Kelvintaph-Defiler

**URL:** <https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269>\
**Category:** Level Help\
**Created:** [July 27, 2020, 11:16pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269 "2020-07-27T23:16:54Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![Speedypickle1](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Speedypickle1](https://discourse.codecombat.com/u/Speedypickle1)\
**Post date:** [August 12, 2020, 11:55pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/21 "2020-08-12T23:55:13Z")

</div>

Now my archers do not move and my paladin will not heal:

```python
def commandPaladin():
    friends = hero.findFriends()
    for friend in friends:
        if friend.type == "paladin":
            hero.command(friend, "move", {'x': 22, 'y': 40})
            hero.command(friend, "move", {'x': 22, 'y': 66})
            hero.command(friend, "move", {'x': 42, 'y': 66})
            hero.command(friend, "move", {'x': 42, 'y': 82})
            hero.command(friend, "move", {'x': 74, 'y': 82})
            hero.command(friend, "move", {'x': 85, 'y': 74})
            enemy = friend.findNearestEnemy()
            if enemy and friend.pos.x == 85 and friend.pos.y == 74:
                hero.command(friend, "shield")
                
                if friend.canCast("heal") and friend.health < friend.maxHealth:
                    hero.command(friend, "cast", "heal", friend)
                    

def commandHero():
    hero.moveXY(34, 15)
    hero.moveXY(34, 22)

def commandHelpers():
    friends = hero.findFriends()
    
    for friend in friends:
        enemy = friend.findNearestEnemy()
        
        if friend.type == "archer":
            hero.command(friend, "move", {'x': 22, 'y': 40})
            hero.command(friend, "move", {'x': 22, 'y': 66})
            hero.command(friend, "move", {'x': 42, 'y': 66})
            hero.command(friend, "move", {'x': 42, 'y': 82})
            hero.command(friend, "move", {'x': 74, 'y': 82})
            hero.command(friend, "move", {'x': 75, 'y': 68})
            if enemy and enemy.type != "yeti":
                
                hero.command(friend, "attack", enemy)
        
            

def commandOthers():
    friends = hero.findFriends()
    for friend in friends:
        if friend.type == "soldier":
            enemy = friend.findNearestEnemy()
            if enemy:
                hero.command(friend, "attack", enemy)
                

commandHero()
while True:
    commandPaladin()
    commandHelpers()
    commandOthers()

```

---

<div class="post-metadata">

**Author:** ![MidnightWolf39](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/midnightwolf39/32/13309_2.png) [@MidnightWolf39](https://discourse.codecombat.com/u/MidnightWolf39)\
**Post date:** [August 13, 2020, 12:12am UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/22 "2020-08-13T00:12:17Z")

</div>

> [@Speedypickle1](#):
>
> `if enemy and friend.pos.x == 85 and friend.pos.y == 74:`

Your friend’s y will never be 85 and 74.

---

<div class="post-metadata">

**Author:** ![Speedypickle1](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Speedypickle1](https://discourse.codecombat.com/u/Speedypickle1)\
**Post date:** [August 13, 2020, 12:19am UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/23 "2020-08-13T00:19:42Z")

</div>

ok (20 charrrarrrrrrrs!!!)

---

<div class="post-metadata">

**Author:** ![tv337](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/tv337/32/12147_2.png) [@tv337](https://discourse.codecombat.com/u/tv337)\
**Post date:** [August 16, 2020, 3:53pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/24 "2020-08-16T15:53:18Z")

</div>

what i did was make the paladin shield as I ran to a safe spot. if you time it correctly you can get the paladin to a safe spot like this  
 ![Screenshot 2020-08-16 at 10.51.59](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/9/981c0a9a063cd308c705f1822e2d10b333b839ea.png)  
the graphics on my computer are bad but that is the paladin with a shaman and in the end I had the paladin kill the shaman near him.  
with the paladin safe you can hurt the necromancer to make him flee so good luck I wont give away any more

---

<div class="post-metadata">

**Author:** ![Speedypickle1](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Speedypickle1](https://discourse.codecombat.com/u/Speedypickle1)\
**Post date:** [August 16, 2020, 8:19pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/25 "2020-08-16T20:19:23Z")

</div>

ok @tv337 let me try that

---

<div class="post-metadata">

**Author:** ![Speedypickle1](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Speedypickle1](https://discourse.codecombat.com/u/Speedypickle1)\
**Post date:** [August 16, 2020, 8:22pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/26 "2020-08-16T20:22:50Z")

</div>

Nothing new really happens and the archers do not move:

```python
def commandPaladin():
    friends = hero.findFriends()
    for friend in friends:
        if friend.type == "paladin":
            hero.command(friend, "move", {'x': 22, 'y': 40})
            hero.command(friend, "move", {'x': 22, 'y': 66})
            hero.command(friend, "move", {'x': 42, 'y': 66})
            hero.command(friend, "move", {'x': 42, 'y': 82})
            hero.command(friend, "move", {'x': 74, 'y': 82})
            hero.command(friend, "move", {'x': 85, 'y': 66})
            enemy = friend.findNearestEnemy()
            if enemy and friend.pos.x == 85 and friend.pos.y == 66:
                hero.command(friend, "shield")
                hero.command(friend, "attack", enemy)
                hero.command(friend, "shield")
                if friend.canCast("heal") and friend.health < friend.maxHealth:
                    hero.command(friend, "cast", "heal", friend)
                    
                    

def commandHero():
    hero.moveXY(34, 15)
    hero.moveXY(34, 22)

def commandHelpers():
    friends = hero.findFriends()
    
    for friend in friends:
        enemy = friend.findNearestEnemy()
        
        if friend.type == "archer":
            hero.command(friend, "move", {'x': 22, 'y': 40})
            hero.command(friend, "move", {'x': 22, 'y': 66})
            hero.command(friend, "move", {'x': 42, 'y': 66})
            hero.command(friend, "move", {'x': 42, 'y': 82})
            hero.command(friend, "move", {'x': 74, 'y': 82})
            hero.command(friend, "move", {'x': 75, 'y': 68})
            if enemy and enemy.type != "yeti":
                
                hero.command(friend, "attack", enemy)
        
            

def commandOthers():
    friends = hero.findFriends()
    for friend in friends:
        if friend.type == "soldier":
            enemy = friend.findNearestEnemy()
            if enemy:
                hero.command(friend, "attack", enemy)
                

commandHero()
while True:
    commandPaladin()
    commandHelpers()
    commandOthers()

```

---

<div class="post-metadata">

**Author:** ![tv337](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/tv337/32/12147_2.png) [@tv337](https://discourse.codecombat.com/u/tv337)\
**Post date:** [August 18, 2020, 6:13pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/27 "2020-08-18T18:13:37Z")

</div>

you keep trying to tell your friend to move on slippery ice. he can’t

---

<div class="post-metadata">

**Author:** ![Speedypickle1](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Speedypickle1](https://discourse.codecombat.com/u/Speedypickle1)\
**Post date:** [August 19, 2020, 12:40am UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/28 "2020-08-19T00:40:39Z")

</div>

can you tell me where that is exactly @tv337?

---

<div class="post-metadata">

**Author:** ![tv337](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/tv337/32/12147_2.png) [@tv337](https://discourse.codecombat.com/u/tv337)\
**Post date:** [August 31, 2020, 2:22pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/29 "2020-08-31T14:22:18Z")

</div>

at the start of the code you say for the paladin to move. at the start of the level the paladin is on slippery ice and cant move well. BTW sorry for the late reply I cant get on very often so sorry.

---

<div class="post-metadata">

**Author:** ![Speedypickle1](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Speedypickle1](https://discourse.codecombat.com/u/Speedypickle1)\
**Post date:** [August 31, 2020, 8:36pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/30 "2020-08-31T20:36:59Z")

</div>

How do I tell if it is slippery ice?

---

<div class="post-metadata">

**Author:** ![tv337](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/tv337/32/12147_2.png) [@tv337](https://discourse.codecombat.com/u/tv337)\
**Post date:** [August 31, 2020, 8:46pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/31 "2020-08-31T20:46:27Z")

</div>

it is weird everything in a box here is slippery ice: ![Screenshot 2020-08-31 at 15.45.18](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/2/2a80bbd1cf5b1253775950a46574ceff3517cd23.png) and this is not: ![Screenshot 2020-08-31 at 15.45.26](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/5/58895ab083a890ed2641c24c315ba5c96e2d4574.png) if you look closely there is a difference smooth ice does not have as many cracks.

---

<div class="post-metadata">

**Author:** ![Speedypickle1](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Speedypickle1](https://discourse.codecombat.com/u/Speedypickle1)\
**Post date:** [August 31, 2020, 10:10pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/32 "2020-08-31T22:10:18Z")

</div>

oohhhh, Bu how will that help me

---

<div class="post-metadata">

**Author:** ![tv337](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/tv337/32/12147_2.png) [@tv337](https://discourse.codecombat.com/u/tv337)\
**Post date:** [September 1, 2020, 3:22pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/33 "2020-09-01T15:22:43Z")

</div>

they cant move well on smooth ice if you move them off of that they can then do stuff. I have been told that if they get caught in the fling spells they will have one oppurtunity to attack before the fear spells kick in so you might want to try that

---

<div class="post-metadata">

**Author:** ![Speedypickle1](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Speedypickle1](https://discourse.codecombat.com/u/Speedypickle1)\
**Post date:** [September 1, 2020, 7:28pm UTC](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269/34 "2020-09-01T19:28:23Z")

</div>

I do not know how I would do that because the they cast the fear spells so fast

[Previous page](https://discourse.codecombat.com/t/help-with-kelvintaph-defiler/23269.md?page=1)
