Dueling Grounds Issue

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

Can you post your code please?

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”

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”.

You need a sword to attack.

You need boot to move.

You need a shield to do that.

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:

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