The Snowhold Clash topic

That’s fine, I’m always happy to help!

1 Like

Hey is there a way to target the specific towers. I trying to haste and attack tower with spirit but it shows error.

Use a for loop to run through all enemies then check if the enemy type is a tower and its x and y are the towers chordinates.

Thank you I got to the towers!
Could you help me out I am a bit unsure how do I get it to crystallise when enemy are nearby. This code just crystallises as the code progresses even when no enemy are nearby.

def spiritAct(data):
    spirit = data["spirit"]
    place = data["place"]
    tower_1 = (80,65)
    tower_2 = (75,40)
    tower_3 = (80,15)
    while True:
        enemy = spirit.findNearestEnemy()
        spirit.moveTo(80,65)
        spirit.special("haste")
        spirit.special("crystallize")
        if enemy:
            spirit.special("crystallize")
            spirit.special("flare", enemy)
        if enemy and spirit.isReady("haste"):
            spirit.special("haste", spirit)

Just add and spirit.distanceTo(enemy) < distance for whatever distance you want to crystallize at in the if statement. The range for crystallize is 20 meters.

OK tysm. It fixed my code!

1 Like

only if i was here to help :sweat_smile:

hm theres something odd about my code, mine is very similar to top 10’s code with
tower flaring (i have),
soldiers and archers instead of shamans(i have),
a slight little bit of brawlers(i have),
a lightning and fireball detector (lightning, catapults warlocks and spirits. fireball, shamans and archers) (i have)
and yet, I’M IN 40TH PLACE, can anyone help me?

I didn’t check your strategy but I think the problem is in the game’s ending when the towers are destroyed. I have a similar problem, I think I am doing something wrong. You can try and copy top places strategy, so your code and play would look the same.

When does the snowhold clash end?

TODAY.

you literally said it yourself :crazy_face:

(post deleted by @blasterdrag)

Like when at 12? (20 charss must burn)

Anyone staying up till midnight for snowhold? :stuck_out_tongue_closed_eyes: :stuck_out_tongue_winking_eye:

They could be in different time zones.

NOT FOR SNOWHOLD for new years yes

Niceeeee (You should stay up for snowhold too)

i was 27th and because of YOU got to 54

??? (20chars is confused)