# The ogres are trapping you with their dark rituals!
# Your hero can't do anything besides command and move without angering the warlocks.
# Beware ice, robots, traps, antigravity fields, and other dark magic.
# Somehow, you'll need to defeat Nalfar and save your paladin.
# The great treasure of Kelvintaph awaits your victory.
friends = hero.findFriends()
hero.moveXY(36, 23)
hero.moveXY(72, 14)
while True:
enemy = hero.findNearestEnemy()
friends = hero.findFriends()
for friend in friends:
enemi = friend.findNearestEnemy()
nalfar = hero.findByType("necromancer")
if friend.type != "paladin":
if enemi and enemi.id != "uld-mak":
hero.command(friend, "attack", enemi)
paladins = hero.findByType("paladin")
for paladin in paladins:
if friend.type == "paladin":
hero.command(friend, "shield")
if paladin.canCast("heal") and paladin.health < 600:
hero.command(paladin, "cast", "heal", paladin)
My friends won’t attack then they get feared, I get stuck by the warlocks and then my paladin dies