6800 pPlot = pCaster.plot()
:
6822 for iiX in range(iX-2, iX+3, 1):
6823 for iiY in range(iY-2, iY+3, 1):
6824 pPlot = CyMap().plot(iiX,iiY)
6825 if pPlot.isNone() == False:
6826 if pPlot.getImprovementType() == iFallenForest:
6827 iImprovementCount += 1
6828 if iImprovementCount == 0:
6829 pPlot = pCaster.plot()
6830 pPlayer = gc.getPlayer(pCaster.getOwner())
6831 pPlot.setImprovementType(iFallenForest)
6832 newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_FOREST_CREEPER'), pPlot.getX(), pPlot.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
6833 if CyGame().getSorenRandNum(5, "Chance to Spawn Malignant Flora from Fallen Forest Creation") < 3:
6834 newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_MALIGNANT_FLORA'), pPlot.getX(), pPlot.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
6835 return
6836 if iImprovementCount > 0:
6837 if CyGame().getSorenRandNum(3, "Chance to Spawn Extra Forest Creeper from Forest when Lair fails") == 1:
6838 pPlayer = gc.getPlayer(pCaster.getOwner())
6839 newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_FOREST_CREEPER'), pPlot.getX(), pPlot.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)