## Slaver! ##
pPlayer = gc.getPlayer(pWinner.getOwner())
if pWinner.isHasPromotion(gc.getInfoTypeForString('PROMOTION_SLAVER')):
if pPlayer.getCivics(gc.getInfoTypeForString('CIVICOPTION_LABOR')) == gc.getInfoTypeForString('CIVIC_SLAVERY'):
if (unitY.getUnitCombatType() == gc.getInfoTypeForString("UNITCOMBAT_MELEE")) or (unitY.getUnitCombatType() == gc.getInfoTypeForString("UNITCOMBAT_GUN")) or (unitY.getUnitCombatType() == gc.getInfoTypeForString("UNITCOMBAT_MOUNTED")) or (unitY.getUnitCombatType() == gc.getInfoTypeForString("UNITCOMBAT_ARCHER")):
if CyGame().getSorenRandNum(100, "Bob") <= 40:
iUnit = pLoser.getUnitType()
newUnit = pPlayer.initUnit(gc.getInfoTypeForString( 'UNIT_SLAVE' ), pWinner.getX(), pWinner.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.NO_DIRECTION)
newUnit.finishMoves()
else if CyGame().getSorenRandNum(100, "Bob") <= 33:
iUnit = pLoser.getUnitType()
newUnit = pPlayer.initUnit(gc.getInfoTypeForString( 'UNIT_SLAVE_2' ), pWinner.getX(), pWinner.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.NO_DIRECTION)
newUnit.finishMoves()
CyInterface().addMessage(pWinner.getOwner(),False,15,CyTranslator().getText("TXT_KEY_SLAVER",()),'',0,'Art/Interface/Buttons/Units/slave.dds',ColorTypes(44), pWinner.getX(), pWinner.getY(), True,True)
## Slaver! ##