def spellSpring(caster):
pPlot = caster.plot()
if pPlot.isnotPeak():
if pPlayer.isHuman() == False:
if pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_ILLIANS'):
if pPlot.getTerrainType()==gc.getInfoTypeForString('TERRAIN_DESERT'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_FLOOD_PLAINS'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_OASIS'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_PLAINS'),True,True)
if pPlot.getTerrainType()==gc.getInfoTypeForString('TERRAIN_BURNING_SANDS'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_FLOOD_PLAINS'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_OASIS'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_FIELDS_OF_PERDITION'),True,True)
if pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_MALAKIM'):
if pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_ILLIANS'):
if pPlot.getTerrainType()==gc.getInfoTypeForString('TERRAIN_PLAINS'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_GRASS'),True,True)
if pPlot.getTerrainType()==gc.getInfoTypeForString('TERRAIN_FIELDS_OF_PERDITION'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_BROKEN_LANDS'),True,True)
if pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_DESERT'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_FLOOD_PLAINS'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_OASIS'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_PLAINS'),True,True)
if pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_BURNING_SANDS'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_FLOOD_PLAINS'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_OASIS'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_FIELDS_OF_PERDITION'),True,True)
if pPlayer.isHuman() == True:
if pPlot.getTerrainType()==gc.getInfoTypeForString('TERRAIN_PLAINS'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_GRASS'),True,True)
if pPlot.getTerrainType()==gc.getInfoTypeForString('TERRAIN_FIELDS_OF_PERDITION'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_BROKEN_LANDS'),True,True)
if pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_DESERT'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_FLOOD_PLAINS'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_OASIS'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_PLAINS'),True,True)
if pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_BURNING_SANDS'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_FLOOD_PLAINS'):
if pPlot.getFeatureType() != gc.getInfoTypeForString('FEATURE_OASIS'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_FIELDS_OF_PERDITION'),True,True)
iX = pPlot.getX()
iY = pPlot.getY()
for iiX in range(iX-1, iX+2, 1):
for iiY in range(iY-1, iY+2, 1):
pPlot2 = CyMap().plot(iiX,iiY)
if pPlot2.getFeatureType() == gc.getInfoTypeForString('FEATURE_FLAMES'):
pPlot2.setFeatureType(-1, -1)
if pPlot2.getImprovementType() == gc.getInfoTypeForString('IMPROVEMENT_SMOKE'):
pPlot2.setImprovementType(-1)