It is just an idea, i m ignorant about modding so i don't know if it can be made.
it could be interesting that when general is killed that the army has 50% chance to lose moral and escape (as usual) and 50% to turn "berserk" or getting moral bonus.
for exemple if the general dies while a heroic charge they could get a moral bonus (to avenge the general)
if the general dies from a catapult/arrow (anyway something from distance without contact) the army will lose moral.
your opinion?