When a player has a lot of health (technically all you need is more than 4 health although this bug is a lot easier to test with 99 health) and they get hit by a spear trap, they won't die (as the spear trap is not an insta-kill), but the hit will be recorded as a death by spear trap in stats.txt.

Here's the relevant code where the bug is (oPlayer1, Step Event, Action 3, line 153):

Code:

if (global.plife > 0 and isRealLevel()) global.miscDeaths[7] += 1;

The corrected code should read

Code:

if (global.plife <= 0 and isRealLevel()) global.miscDeaths[7] += 1;

Also, this code needs to be moved down a few lines, after the line that reduces the player's health by 4. This will record the death stat only if the player actually died.

Further note: the same bug exists in line 136 in the code for being hurt by explosions. Looks like a copy-paste.

I made a rap.It sounds dumb, like reading a mapI really should stop this thing before it goes too farBut I don't really car as long as I stay below the radarThose big companies won't get me noI'll get away before the fuzz show

I made a rap.It sounds dumb, like reading a mapI really should stop this thing before it goes too farBut I don't really car as long as I stay below the radarThose big companies won't get me noI'll get away before the fuzz show