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

[SOLVED] on Summit's Gate

Hi i am stuck on summits gate and i am using Ritic with best armor and weapon.
the title looks funky because all the names are taken

my code

# Fight your way into the Inner Sanctum of the ogre chieftain, and defeat her.
while True:
    enemy = hero.findNearestEnemy()
    friend = hero.findNearest(hero.findFriends())
    flag = hero.findFlag("green")
    if flag:
    elif enemy:
        distance = hero.distanceTo(enemy)
        if hero.distanceTo(enemy) < 20:
            if friend:
                hero.command(friend, "attack", enemy)
            if hero.canCast("chain-lightning", enemy):
                hero.cast("chain-lightning", enemy)
            if friend:
                hero.command(friend, "defend", hero.pos)
    if >= hero.costOf("soldier"):
    if hero.canCast("earthskin", hero):
        hero.cast("earthskin", hero)

do i need an equipment check

i solved it