Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Help: Harrowland

My code does not run it only summons 1 archer and that is all here is my code

def heroAttack():
    enemy = hero.findNearestEnemy()
    if enemy and enemy.type != "sand-yak":
        if pet.isReady("shape-shift"):
        if hero.isReady("throw"):
        if hero.isReady("phase-shift"):
        if hero.canCast("chain-lightning", enemy):
            hero.cast("chain-lightning", enemy)
        if hero.isReady("shadow-vortex"):
            hero.shadowVortex(hero.pos, {"x": 34, "y": 25})
def summonA():
    if >= 25:
def commandA():
    enemy = hero.findNearestEnemy()
    friends = hero.findByType("archer", hero.findFriends())
    for friend in friends:
        if enemy and enemy.type != "sand-yak":
            hero.command(friend, "attack", enemy)
while True:

It should work, it worked in every arena I tried. Is there something wrong with the arena or is it a client issue or is it my code.

Maybe it’s your gold?

does this work? maybe this is the problem.

I think it is the arena itself because I tried your code in harrowland and it did not work.

Welcome back @pa_ki !

Welcome back @pa_ki !

thanks (20 characters)

lol you have exactly the same post as me @Dragonlouis

1 Like

That is not the problem. In human language it is just saying find this type of friend and command that type.

Read this topic [Solved] How do you command properly

Can you send a picture please

Well all that happens is the soldier kill each other and the archers kill each other and us heroes stand still. Here is a picture(the last archer was the one I summoned and also that Fake Peasant(Blue Fox :grinning:))



@Deadpool198 or @Chaboi_3000 help please.

I think they 're off line. I’ve been waiting for more help on my level

I think it’s probably a bug(Harrowland is pretty buggy), but maybe @Deadpool198 or @Chaboi_3000 could help

ive experienced a bug too it only runs one line of my code

That’s the problem…
It also affects the simple CPU apparently. What you have to do is do something first which will tip the balance in your direction. Remember, you only need to kill one of their soldiers and your will have an advantage, destroy their army and kill their hero. So you could throw as your first line, or use chain-lightning etc.

Yeah I realized that when I first played. But how do I make it so my code still runs.

You can’t I’m afraid. (as far as I’m aware)

So this arena is just so old that is producing bugs