The Clear Swamp spell refers to a non-existent function
clearSwamp .
---
Field Fortification is really buggy. It clears all features if the caster isn't an elf, it spawns only basic fort commanders and there is no check to make sure only one commander is made. I suggest replacing the
spellPioneer function with this:
Code:
def spellPioneer(caster):
pPlot = caster.plot()
iFeature = pPlot.getFeatureType()
iCivType = gc.getPlayer(caster.getOwner()).getCivilizationType()
if iFeature in ( gc.getInfoTypeForString(forest) for forest in ('FEATURE_FOREST', 'FEATURE_FOREST_BURNT', 'FEATURE_FOREST_NEW', 'FEATURE_FOREST_ANCIENT', ) ):
if iCivType not in ( gc.getInfoTypeForString(elf) for elf in ('CIVILIZATION_LJOSALFAR', 'CIVILIZATION_SVARTALFAR') ):
pPlot.setFeatureType(FeatureTypes.NO_FEATURE, -1)
elif iFeature in ( gc.getInfoTypeForString(jungle) for jungle in ('FEATURE_JUNGLE', ) ):
if iCivType not in ( gc.getInfoTypeForString(lizard) for lizard in ('CIVILIZATION_CUALLI', 'CIVILIZATION_MAZATL', 'CIVILIZATION_CLAN_OF_EMBERS', ) ):
pPlot.setFeatureType(FeatureTypes.NO_FEATURE, -1)
if reqClaimFort(caster):
spellClaimFort(caster)
It leaves features alone, except forests for non-elves and jungle for non-lizards or orcs and uses the normal hire commander functions, so spawns correct Fort Commanders and only one per tile.
---
Forts were very strange in my game. One was taken over by a boar, an it spawned a plant of some sort as commander and downgraded the fort to a goblin fort.
Then I sent in the troops, cleared the plant and found that all my units had cast spell that turn. Next turn, my units were bumped from the fort, and a new plant grew in the fort.
The third time I claimed the fort, I had intentionally saved a unit to claim the fort the same turn. I did, got the fort and then a few turns later... a barbarian city spawned right on top of
my fort.
---
Incidentally, I think the Boss is overpowered. It's stronger than scouts, can lead units, recruit cannon fodder for a mere 10

, recruit Archers without Archery, recruit Trolls, build Forts in three turns without Construction... Neat idea, but dial it down some, please.