# scions start - Gives Reborn when razing cities. The function reducing the population of Scion conquests kicks in first. Currently Reborn given = that population -1. Requires Sorc. and Priestood. It's been suggested that be changed to requiring the civic "Glory."
iReborn = gc.getInfoTypeForString('UNIT_REBORN')
eTeam = gc.getTeam(pPlayer.getTeam())
if gc.getPlayer(city.getOwner()).getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_SCIONS'):
if (eTeam.isHasTech(gc.getInfoTypeForString('TECH_SORCERY')) and eTeam.isHasTech(gc.getInfoTypeForString('TECH_PRIESTHOOD'))):
if pPlayer.getCivics(gc.getInfoTypeForString('CIVICOPTION_GOVERNMENT')) != gc.getInfoTypeForString('CIVIC_GOD_KING'):
if (city.getPopulation() - 1) >= 1:
CyInterface().addMessage(city.getOwner(),True,25,CyTranslator().getText("TXT_KEY_MESSAGE_REBORN_SPAWNED_RAZED", ()),'',1,'Art/Interface/Buttons/Units/Scions/reborn.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
for i in range((city.getPopulation()) - 1):
spawnUnit = pPlayer.initUnit(iReborn, city.getX(), city.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
if pPlayer.getCivics(gc.getInfoTypeForString('CIVICOPTION_GOVERNMENT')) == gc.getInfoTypeForString('CIVIC_GOD_KING'):
if (city.getPopulation() - 1) >= 1:
CyInterface().addMessage(city.getOwner(),True,25,CyTranslator().getText("TXT_KEY_MESSAGE_REBORN_SPAWNED_RAZED", ()),'',1,'Art/Interface/Buttons/Units/Scions/reborn.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
for i in range((city.getPopulation()) - 1):
spawnUnit = pPlayer.initUnit(iReborn, city.getX(), city.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
# scions end