Inheritance of the leader

If leader does not work, who will inherit the rights of the leader?

General that has been in alliance the longest but not sure