This is promotion code for a promotion I called "Capture" that allowed land units to capture defeated enemies. I made the promotion be given when a player completed a National Wonder I added to the game and called "Advanced War College". I never released any of this as a mod on the forum or on Steam because I ended in deciding it was way too balance-breaking, and there were already an assortment of similar National Wonders out there in the wild with names like "Advanced War Colllege".
It worked just fine so far as allowing land units to capture defeated enemies. There was one issue I was never able to find the cure to, but JFD showed me how to do that recently on another thread, and the lines for that are shown in blue. I couldn't figure out which darn language Tag="TXT_KEY_SOMETHING" controlled the mouse-over display when a player mouses over an enemy unit prior to attacking them. It was always talking about "sinking" the opposing land unit. JFD's lines should fix that so it refers to "Defeating" an enemy regardless of whether the battle is a land battle or a sea battle.
Note that I did not allow Ranged or Siege units to have the promotion. I am not sure whether giving the promotion to Ranged and Siege units will work correctly or not.
Feel free to use the code, but I'd appreciate if you would change all the places where the code has PROMOTION_CAPTURE to something slightly different.
Although I gave the promotion via a building, you can do so via a leader trait. Here's how Washington gives the Sentry promotion to all his units:
All you would have to do is replace TRAIT_RIVER_EXPANSION with the trait name your leader has, replace PROMOTION_SENTRY with your version of PROMOTION_CAPTURE, and remove the rows for UnitCombatType that don't apply (Archer and Siege).
PS: note that land Ranged units are actually referenced in the XML as UNITCOMBAT_ARCHER.