[Help] summits gate help[SOLVED]

I’m so close to the glacier. I just need to beat summits gate. here is my code:

While True:
    go = 0
    enemy = hero.findNearestEnemy()
    flag = hero.findFlag("green")
    friends = hero.findFriends()
    flagBlack = hero.findFlag("black")
    flagV = hero.findFlag("violet")
        
    if flag:
        hero.pickUpFlag(flag)
    if flagBlack:
        hero.pickUpFlag(flagBlack)
        go = 1
    if flagV:
        hero.cast("invisibility", hero)
        hero.pickUpFlag(flagV)
    if enemy:
        if hero.canCast("chain-lightning", enemy):
            hero.cast("chain-lightning", enemy)
        else:
            if hero.isReady("bash"):
                hero.bash(enemy)
            else:
                hero.attack(enemy)
        
    for friend in friends:
        if friend and friend.type == "paladin" and friend.team == hero.team:
            if friend.canCast("heal"):
                hero.command(friend, "cast","heal",hero)
            else:
                if friend.findNearestEnemy():
                    hero.command(friend, "attack",friend.findNearestEnemy() )
        if friend and friend.findNearestEnemy() and friend.type != "paladin" and friend.team== hero.team:
            hero.command(friend, "attack", friend.findNearestEnemy())
    while hero.gold >= hero.costOf("soldier"):
        hero.summon("soldier")
    friends = hero.findFriends()
    for friend in friends: 
        if friend.type != "paladin" and go == 1:
            hero.command(friend, "move", hero.pos)

Can you help? I just need to beat the warlocks. Also, the variable “go” is to tell my army when to start the raid at the warlocks.

Also, here is my gear:
Screenshot 2021-09-30 6.02.55 PM

Welcome to the forums @Bolt_coy, this is a family-friendly place where coders can share bugs, ask for help on any CodeCombat level (don’t forget to post your code correctly), or just hang out with other coders. But before you post more, please check out the guidelines (if you haven’t already): this topic.
Have a great time! :partying_face: (Yayyyy, why do I keep beating @enPointe77? This is getting suspicious…)

Do you have any boots with the move() method?

3 Likes

Smart, but runesword is way too slow.

Get a faster/cheap weapon.

Not worth it and not needed.

Just target the catapults first using hero.findbytype. And then target beam fangriders, beam towers, such and such(catapult FIRST, then witch and warlock is there is.)

1 Like

Just kill those ones that are threats first.

1 Like

Lol, I’m really busy nowadays :rofl:.
Welcome to the forum @Bolt_coy!

2 Likes

Well, I guess I’m the new you for now. (in terms of welcoming people)

1 Like

I use a flag to target the catapults, and I get to the chief but then I die.

I do, but my strat doesn’t need them, My boots are faster. (my strat is to go FAST)

I only have 490 gems.

Also, my problem is this: when I try to target the warlocks, my character targets the door instead of the warlocks, and that doesn’t work.

Maybe try singling out the warlocks when you get near them, with warlock = hero.findNearest(hero.findByType(“warlock”))?

2 Likes

That might work, Ill try

Beat it!!!

2 Likes

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.