Check the PDT file within the game, about half way down. You'll see entries for each army stating the percent chance a leader will be wounded or killed due to fire and then three percentages to see if he will be wounded, killed or captured in melee. The engine then uses those variables along with the normal calculations to make the determination as to when each event will occur.