So, Right Now I’m On Summits Gate And I’m Trying To Make My Paldins Heal Me, but unlike Grim Determination My Paldins Aren’t Healing me!! Below Is My Code, At The Far Bottom Is The Paldin Code:
// Fight your way into the Inner Sanctum of the ogre chieftain, and defeat her.
while(true) {
var enemy = hero.findNearestEnemy();
if (enemy) {
hero.attack(enemy);
}
var flag = hero.findFlag();
if (flag) {
hero.moveXY(flag.pos.x, flag.pos.y);
hero.pickUpFlag(flag);
}
if (hero.isReady("heal")) {
hero.heal(hero);
}
if (hero.isReady("throw")) {
hero.throw(enemy);
}
if (hero.gold > 20) {
hero.summon("soldier");
}
var friend = hero.findFriends();
for(var i = 0; i < friend.length; i++){
hero.command(friend[i], "attack", enemy);
}
var paldin = hero.findByType("paldin");
if (paldin) {
for(var o = 0; o < paldin.length; o++){
hero.command(paldin[o], "cast","heal", hero); }
}
}
Help me Please! I keep Dieing At The 3rd Gate Because Of This!