oui j’ai bien changé cela. Voila ou je suis rendu:
pet.moveXY(32, 28)
hero.moveXY(9, 23)
pet.distractionNoise()
hero.moveXY(16, 27)
hero.blink(hero.pos)
enemy = hero.findNearestEnemy()
if enemy and hero.isReady("backstab"):
hero.backstab(enemy)
oui j’ai bien changé cela. Voila ou je suis rendu:
pet.moveXY(32, 28)
hero.moveXY(9, 23)
pet.distractionNoise()
hero.moveXY(16, 27)
hero.blink(hero.pos)
enemy = hero.findNearestEnemy()
if enemy and hero.isReady("backstab"):
hero.backstab(enemy)
Cela fonctionne avec Ritic sans “blink” mais quelque chose n’est pas tout à fait correct …
J’ai quelques questions à clarifier …
pet.moveXY(32, 28)
hero.moveXY(9, 23)
pet.distractionNoise()
enemy = hero.findNearestEnemy()
while True:
if enemy and enemy.health > 0:
hero.move(enemy.pos)
hero.backstab(enemy)
else:
break
This code will work with any ranger hero.
This is better:
# previous code
while True:
if enemy and enemy.hasEffect("distract"):
hero.backstab(enemy)
else:
break
Super ça marche. merci a vous @dedreous et @xython. J’aurai passé toute ma journée sur un niveau… Et ça parait tout simple comme ça.
Parcontre, je ne vois pas trop où est mon erreur. Mis a part que je n’ai pas mis de boucle. 
Je viens d’essayer et pas besoin de demander si le hero est prêt, non plus.
Merci les gars vous étes super
The problem with blink was the hero has to have a visual contact with his destination.
So the line with move is obligatory.
while True:
if enemy and enemy.hasEffect("distract"):
hero.move({'x': 9,'y': 24})
hero.blink({'x': enemy.pos.x -3, 'y':enemy.pos.y})
hero.backstab(enemy)
Merci pour l’astuce. C’est super que tu va au bout de ma question. Cela va beaucoup m’aider à m’améliorer.

En répondant à tes questions, j’ai aussi appris quelque chose. Merci! 
@xython Do you know any legendaries coders who finished CodeCombat?
ranger can do that!!! just stack a few fire-trap at one point (use flag to install), then lure the skeleton closer