Trouble getting the character to die after a value is changed to 0

This post explains it in detail. Hope it helps!