Bank Raid code not working

The coin collecting isn’t working

is your hero getting an error message? or is it just not collecting the coins? videos would be nice :slight_smile:

Sorry for terrible quality, I had to edit out the loading part cause imgur wouldn’t let you upload gifs over 30 seconds. I rendered using internet settings for the quality lol

It’s not collecting the coins but the hero does say “But it’s already dead!”

it’s already dead means your hero is attempting to attack an enemy you have already killed. I’m trying to form the same conditions you have and see what’s wrong.

Oh. Thanks for the help and effort you’re putting into this

No problem! :slight_smile:

I understand now.
It’s because you equipped the thornprick ring does the damage reflection thing and kills your enemies.
Because of the ring, your hero can’t attack them since they are already dead.
Just unequip the ring and u’ll beat the level.

1 Like

What -_- Okay, thanks I’m going to take it off.

It definitely worked. Thanks SuperSmacker!

No Problem! You’re welcome :slight_smile:

u have to add break after enemyIndex
break the loop

my hero wont collect coins
(working code, had to delete).

Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!

Do you have Thornprick equipped take that off and see what happens

ok, thank you for the help.

Did it work @NoNoSquare

yes it worked (20 characters)

Please delete you code @NoNoSquare