def onUnitKilled(self, argsList):
'Unit Killed'
unit, iAttacker = argsList
player = PyPlayer(unit.getOwner())
attacker = PyPlayer(iAttacker)
[COLOR="Red"]## raise undead from barb start
barbPlayer = gc.getPlayer(gc.getBARBARIAN_PLAYER())
pUnit = unit.plot()
pNewUnit = barbPlayer.initUnit(gc.getInfoTypeForString("UNIT_LION"), pUnit.getX(), pUnit.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.NO_DIRECTION)
pNewUnit.finishMoves()
## raise undead from barb end[/COLOR]
if (not self.__LOG_UNITKILLED):
return
CvUtil.pyPrint('Player %d Civilization %s Unit %s was killed by Player %d'
%(player.getID(), player.getCivilizationName(), PyInfo.UnitInfo(unit.getUnitType()).getDescription(), attacker.getID()))