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

[SOLVED] Need help with grim determination

summonTypes = ['griffin-rider']

def summonTroops():
    type = summonTypes[len(hero.built) % len(summonTypes)]
    if > hero.costOf(type):

def lowestHealthPaladin():
    lowestHealth = 99999
    lowestFriend = None
    friends = hero.findFriends()
    for friend in friends:
        if friend.type != "paladin":
        if < lowestHealth and < friend.maxHealth:
            lowestHealth =
            lowestFriend = friend

    return lowestFriend

def commandPaladin(paladin):
    if (paladin.canCast("heal")):
        target = lowestHealthPaladin()
        if target:
            hero.command(paladin, "cast", "heal", target)
    elif ( < 200):
        hero.command(paladin, "shield")
        target = paladin.findNearestEnemy()
        if (target):
            hero.command(paladin, "attack", target)

def commandPeasant(peasant):
    item = peasant.findNearestItem()
    if item:
        hero.command(peasant, 'move', item.pos)

def commandGriffin(griffin):
    target = hero.findNearest(hero.findByType('warlock'))
    if not target:
        target = griffin.findNearestEnemy()
    if (target):
        hero.command(griffin, "attack", target)

def commandFriends():
    friends = hero.findFriends()
    for friend in friends:
        if friend.type == "peasant":
        elif friend.type == "griffin-rider":
        elif friend.type == "paladin":

while True:

when i run it, it says success, but when i submit it, my guy reynaldo gets one shotted by an arrow.


I would keep submitting it until you get a successful seed (it took me one try).
I’m still not sure whether it was friendly fire though…

1 Like

If you use Chrome, try to open this level in Mozilla or any other browser. And vice versa. It often helps get another seed quickly.

thank you, i will try

hmmm…lemme try that

i just resubmitted and it worked! Thank you guys!