Summit's Gate - Javascript Help

You hero is doing nothing because of typo:

function heroAction() {
// code
        if (hero.distanceTo("enemy" > 29)) //code

preserving your code and with the simplest for the hero

    var enemy = hero.findNearestEnemy();
    if (enemy) hero.attack(enemy) ;

you can reach the Inner Sanctum


but you lose so many soldiers…
didn’t try but i think you need only paladins and archers, i passed the level with a free hero, without summoning any and without losing any unit.
See Jenny's method - stacking while true loops: Summit Gate? how the level can be divided into several while true loops

Has anybody tested the new brew ability?

3 Likes