Just about anything the coder would have planned...
It's impossible to plan everything that a modder would want ("ie: I want to set a specific sprite if the character was hit by an arrow in the back, even if it's not the shot that killed him". "Oh, unless the kill was caused by fire. Fire is more important, of course")