[SOLVED] Salted earth help plz

This is what I’ve got to so far while True:
enemy = hero.findNearestEnemy()
if enemy.type == “munchkin” or enemy.type == “thrower”:
hero.attack(enemy)
item = hero.findNearestItem()
# 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 “coin”:

    hero.moveXY(item.pos.x, item.pos.y)

you have the basic code but it is unfinished. If you could exaggerate on what the problem is it would help us help you.

I have solved the level.