Hello all, I have an issue trying to do something that is not necessary at this level, but I would like to accomplish it anyway.
That is to do the same objectives but also beating the burl.
The problem is that I made a code to beat the burl but when I run it, the normal code to beat the level stops working normally, it does what is supposed to do for some seconds and then it just stops.
Could you help me pass this in my own personal difficulty? 
Here are some screenshots about the level/code/inventory:
# Ogres are attacking a nearby settlement!
# Be careful, though, for the ogres have sown the ground with poison.
# Gather coins and defeat the ogres, but avoid the burls and poison!
while True:
enemy = hero.findNearestEnemy()
if enemy.type == "munchkin" or enemy.type == "thrower":
hero.attack(enemy)
if enemy.type == "burl":
enemyPosition = enemy.pos
if hero.isReady("shadow-vortex"):
hero.shadowVortex(enemy.pos, [43, 13])
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.moveXY(52, 25)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.moveXY(22, 20)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.moveXY(6, 7)
hero.attack(enemy)
hero.attack(enemy)
hero.attack(enemy)
item = hero.findNearestItem()
if item:
itemPosition = item.pos
itemX = itemPosition.x
itemY = itemPosition.y
# Check the item type to make sure the hero doesn't pick up poison!
# If the item's type is "gem" or "coin":
if item.type == "gem" or item.type == "coin":
# Then move and pick it up:
hero.moveXY(itemX, itemY)
Thank you all and happy new year!




