Backwoods Brawl Seven Help

Hi, right now I’m low on gems, and I’m grinding on Backwoods Brawl. For some reasons, after I summon my grifffin-riders, my hero stops, and I get an error message. Here is my code.

def attack(enemy):
    if enemy:
        if hero.canCast("poison-cloud", enemy):
            hero.cast("poison-cloud", enemy)
        if hero.canCast("summon-undead"):
            hero.cast("summon-undead")
        if hero.canCast("summon-burl"):
            hero.cast("summon-burl")
        if hero.canCast("drain-life", enemy):
            hero.cast("drain-life", enemy)
        if hero.canCast("earthskin", hero):
            hero.cast("earthskin", hero)
        hero.attack(enemy)

def raise_dead():
    toSummon = hero.findCorpses()
    if toSummon:
        if hero.canCast("raise-dead"):
            hero.cast("raise-dead")
            

def summon(enemy):
    if hero.gold > hero.costOf("griffin-rider"):
        friends = hero.summon("griffin-rider")
    if enemy:
        hero.command(friends, "attack", enemy)
    
    
while True:
    enemy = hero.findNearestEnemy()
    attack(enemy)
    summon(enemy)
    raise_dead()

maybe because findCorpses gives a array

you don’t actually summon because you just created a variable so just delete the friends = and for commanding I usually use a for loop

Thank you! My code is working well, but I still can’t win. I think it might be my equipment. Also, what is the strongest summonable, such as griffin rider, paladin, and so on. Thank you again for your help!

Paladin is the strongest thing you can summon currently

How much do they cost?

80 gold but you need boss star 4

I already have it, but is it better to summon one paladin, or to summon more weaker troops?

I like to summon soldiers to defend my hero but your choice.

With using soldiers, I just need 10 more seconds of surviving.

It worked with archers thought! Thank you for the help :slightly_smiling_face:

nvr mind. It said success, but didnt work

could you show me your gear

Here it is
Hero.PNG

I also have 2070 gems

900, now, bought some armour

maybe try to use chain-lightning

I added it, but it still dosent work

Now I can only give you sugestions tbh but maybe try to use the cougar pet or which ever one you have

I think ill get the code combat premium and use the ice pet

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