CURSED WONDERGLADE / Maybe bug?

while True:
# Find the nearest item.
# Collect it (if it exists) only if its type isn’t “gem”.
enemy = hero.findNearestItem()
if enemy and enemy.type != “burl”:
hero.attack(enemy)
else:
pass
item = hero.findNearestItem()
if item and item.type != “gem”:
hero.moveXY(item.pos.x, item.pos.y)
# Find the nearest enemy.
# Attack it if it exists and its type isn’t “burl”.

What the problem have you got? I see “Uploading…”, I suppose you tried to upload an image, did you?

1 Like

i posted photo. Help plz

plz. Help Me. I have no Idea

enemy = hero.findNearestItem()

I’m not sure what the effect when you attack an item.

1 Like

Thank you very much!!!