This is my code I don’t know whats wrong with it?
enemy = hero.findNearestEnemy(enemy)
# If there is an enemy, then…
# Create a distance variable with distanceTo.
distance = hero.distanceTo(enemy) <5
# If the distance is less than 5 meters, then attack.
# Else (the enemy is far away), then shield.
distance = hero.distanceTo(enemy)
# Else (there is no enemy)…