Dueling Grounds Issue


#1

Hey Guys,

I am stuck on the level Dueling Grounds, I have read all other topics and it seems they don’t apply to my level as I am not allowed to attack.

I’m not sure what I am supposed to do, it says to survive the enemy for 90s, and beat the enemy, sheild doesn’t work, moving around doesn’t work, and I am not allowed to attack.

Francesca x


#2

Can you post your code please?


#3

while(true) {
var enemy = hero.findNearestEnemy();

if (enemy) {
    hero.attack(enemy)
}

}

This was the code I was using, but it gives me an error saying “hero has no method attack”


#4

Perhaps you have a hammer equipped?
You can easily check and change equipment while in-game by pressing the “Game Menu” button somewhere at the top, then clicking on the tab that says “Change Hero”, and finally clicking “Next”.


#5

You need a sword to attack.

You need boot to move.

You need a shield to do that.


#6

Thanks guys, how embarrassing, I thought to look at that but hadn’t used the hammer recently that I could remember. I do have the shield and boots equipped though :slight_smile:


#7

You don’t have the shielding code in your code. Add this code hero.shield() to somewhere to your code and shield should work.