“Also conspicuously absent is” a check for enemy health. The counter holds the value of attackedOgres not defeatedOgres If your hero has a simple sword or the enemies are a bit more powerful this will produce an infinite loop.
1 Like