# 你需要更好的策略和好的装备来赢得这关。 # 你的克隆体将会拥有和你一样的装备 # 但是,他们没有经验,不会用特殊技能。 def killBm(enemies): enemyIndex = 0 while enemyIndex<len(enemies): enemy=enemies[enemyIndex ] if enemy.type=="archer" and enemy.type!="sand-yak": while enemy.health>0: if enemy and hero.isReady("cleave") and hero.distanceTo(enemy)<5: hero.cleave(enemy) else: hero.attack(enemy) enemyIndex+=1 def killS(enemies): enemyIndex=0 while enemyIndex<len(enemies): enemy=enemies[enemyIndex] if enemy.type!="sand-yak": while enemy and enemy.health>0: if hero.isReady("cleave"): hero.cleave(enemy) else: hero.attack(enemy) enemyIndex+=1 def killE(enemies): enemy=hero.findNearestEnemy() if enemy and enemy.type!="sand-yak": hero.attack(enemy) while True: enemies=hero.findEnemies() killBm(enemies) killS(enemies) killE(enemies) hero.moveXY(59, 38)