For battle specific virtues, like good attacker/defender, then if the king was in the battle at all, even if he wasn;t commanding it, then if the virtue is earnt, then the king gets it, not the person who general'd the battle. It is possible to make the king not general the battle by placing him as one of the re-inforcements, though this only workls with the pre-battle deployment screen in VI.
Bookmarks