// What eldritch artifacts are these? Don't let them blast you!
// The ice gate will open when both ogres are defeated.
hero.moveXY(32, 23);
while(true) {
var enemy = hero.findNearestEnemy();
hero.attack(enemy);
}
if (enemy) {
if (hero.isReady("drain-life")) {
hero.canCast("drain-life", enemy);
} else {
hero.attack(enemy);
}
}
Try to build a fence to be protected from the robots. Then after your troops finish the work, you can use flags to help your hero dogde the projectiles.
// What eldritch artifacts are these? Don't let them blast you!
// The ice gate will open when both ogres are defeated.
var friend = hero.findFriends();
hero.buildXY("fence", 23, 13);
while (true) {
if (enemy) {
var enemy = friend.findNearestEnemy();
hero.command(friend, "attack", enemy);
}
}
// What eldritch artifacts are these? Don't let them blast you!
// The ice gate will open when both ogres are defeated.
var friend = hero.findFriends();
hero.buildXY("fence", 23, 13);
while (true) {
if (enemy) {
var enemy = friend.findNearestEnemy();
hero.command(friend, "attack", enemy);
}
}