My hero (Ritic the Cold) gets past the first wave of ogres and all my other units die, but then he goes in between both beam towers and dies. Sometimes he gets past but then he gets killed by either a skeleton or a warlock. Here is my code:
# Fight your way into the Inner Sanctum of the ogre chieftain, and defeat her. while True: enemy = hero.findNearestEnemy() flag = hero.findFlag("green") friends = hero.findFriends() if flag: hero.pickUpFlag(flag) elif enemy and enemy.type == "tower": hero.attack(enemy) elif enemy: for friend in friends: hero.command(friend, "attack", enemy) hero.attack(enemy)
Somebody please help me.