Death message is displayed before relevant damage messages.
Steps to Replicate:
1. Either land a killing blow on a NPC, or have a NPC land a killing blow on you.
Expected Results:
The damage dealt to the target is displayed, followed by the death message (i.e. "Player killed Wolf!")
Observed Results:
The death message is displayed first, followed by the damage. Among other things, if the player was the victim, it can make it hard to see how much damage was dealt to him/her by the NPC in the final blow.
Comments:
My LUA is not good (more into ISO C and Assembly programming myself), so I may be misintpreting things, by its seems that the function responsible for the displaying the damage messages (displayDelayedLogMessage) is run after the end of every tick. This means that the function currently responsible for displaying the death message, takeHit, will be run before it. Since both functions store source and target information, it may be possible to move the code displaying the death message from takeHit to displayDelayedLogDamage instead.
Then again, this is a minor annoyance at best, so if the work involved is too much, it maybe best to drop it.

Cheers,
-- The Haen.