// That‘s a big‘un! With some clever thinking, Ivy should be able to take care of this situation single-handedly. var x1 = 44 ; var y1 = 34 ; loop { // Find the archer. var friend = this.findNearest(this.findFriends()); var enemy = this.findNearest(this.findEnemies()); // Tell the archer to attack the enemy! if(friend && enemy) { this.command(friend, "attack", enemy); } // Wait, no, that doesn‘t work that well. Maybe try something else? // The munchkin is awfully slow... if (enemy) { if (friend.distanceTo(enemy) < 15) { this.command(friend, "move", {x: x1, y: y1}); } }