// Przechwyć wszystkie ogrze  wiadomości z zasadzki.

function ambushAttack(target) {
    //  Zaatakuj cel jeśli istnieje i powróć na znak.
    // Napisz funkcję.


    if (target) {
        hero.attack(target);
        hero.moveXY(52, 36);
    }
}

while(true) {
    var ogre = hero.findNearestEnemy();
    ambushAttack(ogre);
}

 

 

 

Projektuję strony www Lublin na Joomla i WordPress

Codecombat - mail interceptor - Poczta elektroniczna - JavaScript