I need help with level Hot Gate in Sarven desert whenever I say left or right the artillery don’t do anything
My code looks like this:
while True:
enemy = pet.findNearestEnemy()
if not enemy:
continue
if enemy.type == "scout":
distance = pet.distanceTo(enemy)
if pet.isReady("cold-blast") and distance < 5:
pet.coldBlast()
else:
if enemy.pos.x < pet.pos.x:
hero.say("left!")
if pet.pos.x < enemy.pos.x:
hero.say("right!")
pass
Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!