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

Kithgard brawl 8: HELP

Hi! Does anyone see a way for me to finish this brawl without subsrcibing? THis is the farthes i’ve gotten.

Code
enemy = hero.findNearestEnemy()

hero.summon("decoy")
hero.summon("decoy")
hero.summon("decoy")


friends = hero.findFriends()
def w(duration):
    hero.wait(duration)
w(1)

hero.cast("chain-lightning", enemy)

def consecrate():
    hero.consecrate()
while True:
    enemy = hero.findNearestEnemy()
    hero.buildXY("fire-trap", enemy.pos.x, enemy.pos.y)
    enemy = hero.findNearestEnemy()
    item = hero.findNearestItem()
    if item and item.type == "potion":
        item = hero.findNearestItem()
        pet.fetch(item)
    while hero.gold>= hero.costOf("decoy"):
        hero.summon("decoy")
    if hero.canCast("chain-lightning", enemy):
        enemy = hero.findNearestEnemy()
        hero.cast("chain-lightning", enemy)
    if hero.canCast("invisibility", hero):
        hero.cast("invisibility", hero)
    if hero.health < hero.maxHealth/1.25:
        consecrate()
        enemy = hero.findNearestEnemy()


"""
while True:
    enemy = hero.findNearestEnemy()
    item = hero.findNearestItem()
    if hero.gold>= hero.costOf("soldier"):
        hero.summon("soldier")
        friends = hero.findFriends()
    if item and item.type == "potion":
        item = hero.findNearestItem()
        pet.fetch(item)
    elif hero.health < hero.maxHealth/1.25:
        hero.consecrate()
        enemy = hero.findNearestEnemy()
    elif hero.isReady("flash"):
        hero.flash()
    if hero.canCast("chain-lightning", enemy):
        enemy = hero.findNearestEnemy()
        hero.cast("chain-lightning", enemy)
    else:
        enemy = hero.findNearestEnemy()
        hero.attack(enemy)

"""

the stuff that is in the multiline comment is the other code for if i feel like i wanna switch to mornings edge

I’ve tried charismagnetizing then building a trap on myself but it didnt work )`;

Oh, and this is my stuff:

stone buildy hammer
deflector
programmiticon v
cougar
BS4
order of paladin
the precious
defnesive boots
gold watch thingy
emporer gloves
saphire sense stone
midnight glasses
enameld dragon armour and helmet
Leather belt

Also, does anyone know why it closes 12 hrs afte rlast reply? It says that it is solved but it is not!

And the ONLY survivor was the headhunter!!! #hatethoseguys

1 Like

Can you send me the link to this level?

k!

codecombat.com/play/level/kithgard-brawl?

Zat eez ze link (200000chaaars)

I feel like this would do more damage to yourself than help. Maybe try removing it? You may have already done this. I can’t actually test it because I can’t recreate the level situation.
Danny

I’ll try that. (20 chars)

Just wondering, what does the wooden strand do?

That worked! actually, i just changed my whole code, without fire-traps, only decoys. Thanks for the tip
!

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