There might be something wrong with this level. My bird is acting stupid. It fly’s out for no reason, then when it time to fetch, the stupid thing brings it half way then fly’s back.
Here is my code–
# Find the nearest potion.
potion = pet.findNearestByType(“potion”)
message = event.message
# If the event’s message is “Fetch”
if message is “Fetch”:
# Have the pet fetch the potion.
# Else (for any other messages):
# Use pet.moveXY to return the pet to the red mark.
You don’t have to change the code below.
enemy = hero.findNearest(hero.findEnemies())