Bug ? Lurkers Hard execution 300000000

I’m using this code to try to pass the level however i get Hard execution error on the enemy.type line.

Put enemyIndex += 1 outside of the if conditional (de-indent it twice).

As your code currently stands, if any of the enemies is not a shaman, the counter will never be incremented and you get an infinite loop.

1 Like

Thank you for the answer.