Bug ? Lurkers Hard execution 300000000


#1

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


#2

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.


#3

Thank you for the answer.