Hey guys, Im having trouble with the useful competitor level.I think it has a bug. Its not letting me retrieve the last coin.Also it has a gem in there which my player retrieves, but it leaves the last coin.My code is-
enemy = hero.findNearestEnemy()
# Attack the enemy only if the type is NOT equal to “peon”.
if enemy.type != “peon”:
item = hero.findNearestItem() # Gather the item only if the type is NOT equal to "poison". if item and item.type != "poison": itemPos=item.pos itemX=item.pos.x itemY=item.pos.y hero.moveXY(itemX,itemY)