def reqScorch(caster):
pPlot = caster.plot()
pPlayer = gc.getPlayer(caster.getOwner())
if (pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_PLAINS') or pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_FIELDS_OF_PERDITION') or pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_GRASSLAND')):
if pPlayer.isHuman() == False:
if caster.getOwner() == pPlot.getOwner():
return False
return True
if pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_SNOW'):
if pPlayer.isHuman() == False:
if caster.getOwner() != pPlot.getOwner():
return False
if pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_DOVIELLO'):
return False
if pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_ILLIANS'):
return False
return True
return False
def spellScorch(caster):
pPlot = caster.plot()
if pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_PLAINS'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_DESERT'),True,True)
if pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_FIELDS_OF_PERDITION'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_BURNING_SANDS'),True,True)
if pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_SNOW'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_TUNDRA'),True,True)
if pPlot.getTerrainType() == gc.getInfoTypeForString('TERRAIN_GRASSLAND'):
pPlot.setTerrainType(gc.getInfoTypeForString('TERRAIN_PLAINS'),True,True)
if pPlot.isOwned():
startWar(caster.getOwner(), pPlot.getOwner())