Stop the player being hurt when dead

Currently the player can take damage even though they are already dead, triggering a flash and the noise. The easiest way to test this is in a spike pit.