I have a problem again, could you help me to solve it?
Kelvintaph Defiler “python”
hero.moveXY(34, 22)
while True:
for friend in hero.findFriends():
enemy = friend.findNearestEnemy()
if friend.type == "paladin":
if friend.canCast("heal"):
hero.command(friend, "cast","heal",friend)
else:
if enemy:
hero.command(friend, "attack", enemy)