关键在if hero.isReady(“blink”) and item:一定要加and item因为BLINK功能有1秒等待,如果没有if hero.isReady(“blink”) and item这样写,就回报item.pos没有定义或者接收到空字符
# Collect 10 gems.
# Use "blink" ability to teleport between gaps.
while True:
item= hero.findNearestItem()
# hero.blink(Vector(x, y))
# hero.blink(thing.pos)
if hero.isReady("blink") and item:
hero.blink(item.pos)
pass