# Use hero.reflect() to reflect back Nalfar's projectiles!
while True:
enemy = hero.findNearestEnemy()
if enemy:
dir = Vector.subtract(enemy.pos, hero.pos).normalize()
hero.reflect(Vector(dir.x, dir.y, 0.3))
P.S (I didnt categorize the topic cause i coulnt decide weither it was bug or lvl help)
# Use hero.reflect() to reflect back Nalfar's projectiles!
while True:
bullet = hero.findNearest(hero.findEnemyMissiles())
enemy = hero.findNearestEnemy()
if bullet:
dir = Vector.subtract(bullet.pos, hero.pos).normalize()
hero.reflect(Vector(dir.x,dir.y,0.3))