Hrm. It's looking promising; I added a new terrain type which does block the spell, and works on the tile below the targeted shard. But I've run into a new problem: The <AppliesRandomModifier> that I'm using to randomly select between Death and Fire is also taking the PlaceTerrain gamemodifier as an option, meaning the spell chooses between one of the three options, instead of always changing the terrain + choosing randomly between the two shard transformations.
Is there a way to restrict <AppliesRandomModifier> so that one of the three <GameModifier> tags is always applied, while the other two are randomly selected? (Alternatively, is there a way to group the shard change and the terrain change together, so that AppliesRandomModifier has only two options to choose from, but both of them will alter the terrain as well as change the shard?) I've tried changing the order of the tags, but it seems AppliesRandomModifier will always choose randomly from all GameModifiers in the spell.
Here's the pertinent code:
Code: xml
- <AutoUnlock>1</AutoUnlock>
- <SpellBookSortCategory>World</SpellBookSortCategory>
- <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
- <SpellType>Strategic</SpellType>
- <SpellClass>Other</SpellClass>
- <SpellSubClass>Other</SpellSubClass>
- <SpellTargetType>RegularShard</SpellTargetType>
- <SpellTargetZOCType>Friendly</SpellTargetZOCType>
- <Prereq>
- <Type>AbilityBonusOption</Type>
- <Attribute>Spell_PromiseOfAsshai</Attribute>
- </Prereq>
- <SpellResourceCost>
- <Resource>Mana</Resource>
- <Amount>50</Amount>
- </SpellResourceCost>
- <GameModifier>
- <ModType>Map</ModType>
- <Attribute>PlaceTerrain</Attribute>
- <TerrainType>AshenLand</TerrainType>
- </GameModifier>
- <AppliesRandomModifier>1</AppliesRandomModifier>
- <GameModifier>
- <ModType>Map</ModType>
- <Attribute>ChangeShardType</Attribute>
- <StrVal>DeathShard</StrVal>
- </GameModifier>
- <GameModifier>
- <ModType>Map</ModType>
- <Attribute>ChangeShardType</Attribute>
- <StrVal>FireShard</StrVal>
- </GameModifier>
- <ValidTerrainType>Land</ValidTerrainType>
- <ValidTerrainType>Rugged_Land</ValidTerrainType>
- <ValidTerrainType>Fertile_Land</ValidTerrainType>
- <ValidTerrainType>Chasm</ValidTerrainType>
- <ValidTerrainType>ChasmEdge</ValidTerrainType>
- <ValidTerrainType>DesertTerrain</ValidTerrainType>
- <ValidTerrainType>HillsTerrain</ValidTerrainType>
- <ValidTerrainType>SwampTerrain</ValidTerrainType>
- <ValidTerrainType>ArcticTerrain</ValidTerrainType>
- <ValidTerrainType>MountainRange</ValidTerrainType>
- <ValidTerrainType>MountainSide</ValidTerrainType>
- <ValidTerrainType>Forest</ValidTerrainType>
- <ValidTerrainType>Beach</ValidTerrainType>
- <ValidTerrainType>Cliff</ValidTerrainType>
- <ValidTerrainType>River</ValidTerrainType>
- <ValidTerrainType>City</ValidTerrainType>
- <ValidTerrainType>Submerged</ValidTerrainType>
- <ValidTerrainType>BurningLands</ValidTerrainType>
- <ValidTerrainType>Fissure</ValidTerrainType>
- <ValidTerrainType>CurgensTomb</ValidTerrainType>
- <ValidTerrainType>Imperium</ValidTerrainType>
- <ValidTerrainType>Scrapyard</ValidTerrainType>
- <ValidTerrainType>CaveWall</ValidTerrainType>
- <ValidTerrainType>Unknown</ValidTerrainType>
- <ValidTerrainType>Tomb</ValidTerrainType>
Thanks for your help!