- Szczegóły
- 2349
while(true) {
var enemy = hero.findNearestEnemy();
if(enemy) {
// Find the distance to the enemy with distanceTo.
var distance = hero.distanceTo(enemy);
// If the distance is less than 5 meters...
if(distance < 5) {