# The Snowhold Clash topic

**URL:** <https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447>\
**Category:** AILeague\
**Created:** [December 1, 2023, 8:38pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447 "2023-12-01T20:38:17Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [December 2, 2023, 1:03am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/22 "2023-12-02T01:03:09Z")

</div>

Just fill in `Paladin` with `"spirit"`.

---

<div class="post-metadata">

**Author:** ![ChickenMaster](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chickenmaster/32/35104_2.png) [@ChickenMaster](https://discourse.codecombat.com/u/ChickenMaster)\
**Post date:** [December 2, 2023, 1:05am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/23 "2023-12-02T01:05:34Z")

</div>

It is not doing anything now, so you utterly destroy me…

---

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [December 2, 2023, 1:12am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/24 "2023-12-02T01:12:46Z")

</div>

You need to put it in a while true loop. I just defined it for you so you can just call it when ever you need it.

---

<div class="post-metadata">

**Author:** ![ChickenMaster](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chickenmaster/32/35104_2.png) [@ChickenMaster](https://discourse.codecombat.com/u/ChickenMaster)\
**Post date:** [December 2, 2023, 1:13am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/25 "2023-12-02T01:13:14Z")

</div>

Okay, thanks and did you see the PM???

---

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [December 2, 2023, 1:14am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/26 "2023-12-02T01:14:14Z")

</div>

Yeah I saw it. What other questions do you have?

---

<div class="post-metadata">

**Author:** ![ChickenMaster](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chickenmaster/32/35104_2.png) [@ChickenMaster](https://discourse.codecombat.com/u/ChickenMaster)\
**Post date:** [December 2, 2023, 1:30am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/27 "2023-12-02T01:30:08Z")

</div>

> [@Snowhold Clash Patch Notes](https://discourse.codecombat.com/t/snowhold-clash-patch-notes/36451):
>
> [Snowhold clash](https://codecombat.com/play/ladder/snowhold) is live! This post will contain the notable updates that are done to the arena

Why can’t I post here???

---

<div class="post-metadata">

**Author:** ![NalfarCryptor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/nalfarcryptor/32/37572_2.png) [@NalfarCryptor](https://discourse.codecombat.com/u/NalfarCryptor)\
**Post date:** [December 2, 2023, 1:37am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/28 "2023-12-02T01:37:59Z")

</div>

i think i can help  
javascript:

```python
if(enemy && enemy.type == "some random type"){
     hero.cast("some spell", enemy)
}

```

python:

```python
if enemy and enemy.type == "some random type":
hero.cast("some spell", enemy)
```

---

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [December 2, 2023, 1:51am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/29 "2023-12-02T01:51:45Z")

</div>

Its only to look at the updates on post in.

---

<div class="post-metadata">

**Author:** ![Watamelon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/watamelon/32/43741_2.png) [@Watamelon](https://discourse.codecombat.com/u/Watamelon)\
**Post date:** [December 2, 2023, 5:16am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/30 "2023-12-02T05:16:56Z")

</div>

`if 300 < enemy.health < 400`

make it a range

---

<div class="post-metadata">

**Author:** ![PeterPalov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/peterpalov/32/45280_2.png) [@PeterPalov](https://discourse.codecombat.com/u/PeterPalov)\
**Post date:** [December 2, 2023, 7:01pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/31 "2023-12-02T19:01:15Z")

</div>

Hey guys! Does anybody know how to spawn a Spirit on different places? In the hints it says that it can be spawned on any of the letters, however, it only spawns on “A”.

---

<div class="post-metadata">

**Author:** ![ChickenMaster](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chickenmaster/32/35104_2.png) [@ChickenMaster](https://discourse.codecombat.com/u/ChickenMaster)\
**Post date:** [December 2, 2023, 7:53pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/32 "2023-12-02T19:53:52Z")

</div>

I tried to do that but I cannot do it…

---

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [December 2, 2023, 8:42pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/33 "2023-12-02T20:42:36Z")

</div>

Can I get a example on how to cast flare? Its not working for me… `spirit.special("flare", enemy.x, enemy.y)`  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/f/f/ff6755d4ceeec97c8ddabf45d3323e387ce9cde3.png)

---

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [December 2, 2023, 8:48pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/34 "2023-12-02T20:48:06Z")

</div>

I have tried like every single possible way HELP ☹

---

<div class="post-metadata">

**Author:** ![JustALuke](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/justaluke/32/43608_2.png) [@JustALuke](https://discourse.codecombat.com/u/JustALuke)\
**Post date:** [December 2, 2023, 8:52pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/35 "2023-12-02T20:52:38Z")

</div>

You need to cast it on a unit; it can only hit 1.  
It’s REALLY OP.

---

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [December 2, 2023, 8:53pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/36 "2023-12-02T20:53:52Z")

</div>

So how do I format it?

---

<div class="post-metadata">

**Author:** ![JustALuke](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/justaluke/32/43608_2.png) [@JustALuke](https://discourse.codecombat.com/u/JustALuke)\
**Post date:** [December 2, 2023, 8:54pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/37 "2023-12-02T20:54:55Z")

</div>

`spirit.special("flare", enemy)`

---

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [December 2, 2023, 8:55pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/38 "2023-12-02T20:55:26Z")

</div>

Thanks! 😁 😁 😁 😁 (20chars)

---

<div class="post-metadata">

**Author:** ![iggymaster99](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/iggymaster99/32/34666_2.png) [@iggymaster99](https://discourse.codecombat.com/u/iggymaster99)\
**Post date:** [December 3, 2023, 1:45am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/39 "2023-12-03T01:45:12Z")

</div>

I’m not sure what they say works. When I do this:  
`for enemy in enemies: if towerCount == 0: spirit.special("haste") spirit.moveTo(HeroPlaceholder.x, HeroPlaceholder.y) spirit.special("flare", HeroPlaceholder)`  
It dosent work.  
Edit: I have no clue why it didnt intent properly

---

<div class="post-metadata">

**Author:** ![k\_k\_javascript](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@k\_k\_javascript](https://discourse.codecombat.com/u/k_k_javascript)\
**Post date:** [December 3, 2023, 4:42am UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/40 "2023-12-03T04:42:16Z")

</div>

You can use `"Hero Placeholder"` as id, not variable. List comprehension will help you to define the enemy hero.  
`enemyHero = [e for e in hero.findEnemies() if e.id in ["Hero Placeholder", "Hero Placeholder 1"]][0]`  
And in this level, type of hero is `"base"`. The way you define with using type is simpler.  
`enemyHero = [e for e in hero.findEnemies() if e.type == "base"][0]`

How to make code indentation is to use ```.

---

<div class="post-metadata">

**Author:** ![blasterdrag](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/blasterdrag/32/46594_2.png) [@blasterdrag](https://discourse.codecombat.com/u/blasterdrag)\
**Post date:** [December 3, 2023, 1:22pm UTC](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447/41 "2023-12-03T13:22:16Z")

</div>

how do you make you spirit move after all the towers are gone? he just sits there at my hero.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/0/2/0230722d5022f257cc5c633d98a937b2e66fd659.png)

[Previous page](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447.md?page=1)

[Next page](https://discourse.codecombat.com/t/the-snowhold-clash-topic/36447.md?page=3)
