The Snowhold Clash topic

Just fill in Paladin with "spirit".

1 Like

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

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.

1 Like

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

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

Why can’t I post here???

i think i can help
javascript:

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

python:

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

Its only to look at the updates on post in.

if 300 < enemy.health < 400

make it a range

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”.

1 Like

I tried to do that but I cannot do it…

Can I get a example on how to cast flare? Its not working for me… spirit.special("flare", enemy.x, enemy.y)
image

I have tried like every single possible way HELP :frowning:

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

So how do I format it?

spirit.special("flare", enemy)

Thanks! :grin: :grin: :grin: :grin: (20chars)

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

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 ```.

how do you make you spirit move after all the towers are gone? he just sits there at my hero.
image

1 Like