In the stage where the warlock and the skeletons are the skeletons keep killing me and I have no clue what to do. when I enter the area of the warlock I have about 1000 health.
This is my code for the warlock part (just so people can’t copy my code).
while (true) {
var enemy = hero.findNearestEnemy();
if (enemy) {
if (hero.canCast('chain-lightning')){
hero.cast('chain-lightning', enemy);
}else{
hero.attack(enemy);
}
}
}
Any suggestions on where to change my code? Thanks
I had 1548 HP at this point , but I think, there is one more difference. I used chain-lightning, attack, bash and shield abilities and paladin healing.
Did it work for you?
Does ‘bash’ have a cooldown?
I tried to use command to command my troops but it has an error saying that the hero needs something
to command
Yes, it worked, I passed this level quite a long time ago.
Yes, it has.
Such error often appears when you do something to anything without checking that it exists.
What sword did you use? I’m using the Runesword. It does more damage than my shield’s bash.
Do the warlock and skeletons count as ogres? Also, I know the door is an enemy, but could you tell me what enemy type it is? thanks
I didn’t define skeletons in this level, but I believe, they are skeletons = self.findByType(“skeleton”, self.findEnemies())
Actually, you can click on enemy you want to know type and on the bar at the bottom of level map will appear his name and type.