I am straggling on “Airdrop” stage.
My raven has fetched a sword, I don’t know what should it to do.
# Get all swords and protect the village.
def onSpawn (event):
while True:
item = hero.findNearestItem()
# The pet should fetch the item if it exists:
pet.fetch(item)
pet.moveXY(22, 34)
# Assign onSpawn function for the pet's "spawn".
pet.on("spawn", onSpawn)
while True:
# Guard the left passage:
pet.moveXY(21, 34)
enemy = hero.findNearestEnemy()
if enemy:
hero.attack(enemy)
pass